LocalPlayer.Changed:connect(function(h)if IsTouchDevice and h=="\068\101\118\084\111\117\099\104\077\111\118\101\109\101\110\116\077\111\100\101"then DevMovementMode=LocalPlayer.DevTouchMovementMode IsUserChoice=DevMovementMode==Enum.DevTouchMovementMode.UserChoice if IsUserChoice then UserMovementMode=GameSettings.TouchMovementMode end onControlsChanged()elseif not IsTouchDevice and h=="\068\101\118\067\111\109\112\117\116\101\114\077\111\118\101\109\101\110\116\077\111\100\101"then DevMovementMode=LocalPlayer.DevComputerMovementMode IsUserChoice=DevMovementMode==Enum.DevComputerMovementMode.UserChoice if IsUserChoice then UserMovementMode=GameSettings.ComputerMovementMode end onControlsChanged()end end)GameSettings.Changed:connect(function(h)if not IsUserChoice then return end if h=="\084\111\117\099\104\077\111\118\101\109\101\110\116\077\111\100\101"or h=="\067\111\109\112\117\116\101\114\077\111\118\101\109\101\110\116\077\111\100\101"then UserMovementMode=GameSettings[h]onControlsChanged()end end)
--[[ Settings Changed Connections ]]
--
LocalPlayer.Changed:connect(function(property)
	if IsTouchDevice and property == "DevTouchMovementMode" then
		DevMovementMode = LocalPlayer.DevTouchMovementMode
		IsUserChoice = DevMovementMode == Enum.DevTouchMovementMode.UserChoice
		if IsUserChoice then
			UserMovementMode = GameSettings.TouchMovementMode
		end
		onControlsChanged()
	elseif not IsTouchDevice and property == "DevComputerMovementMode" then
		DevMovementMode = LocalPlayer.DevComputerMovementMode
		IsUserChoice = DevMovementMode == Enum.DevComputerMovementMode.UserChoice
		if IsUserChoice then
			UserMovementMode = GameSettings.ComputerMovementMode
		end
		onControlsChanged()
	end
end)

GameSettings.Changed:connect(function(property)
	if not IsUserChoice then
		return
	end
	if property == "TouchMovementMode" or property == "ComputerMovementMode" then
		UserMovementMode = GameSettings[property]
		onControlsChanged()
	end
end)
