LocalPlayer.Changed:connect(function(N)if lastInputType==Enum.UserInputType.Touch and N=="\068\101\118\084\111\117\099\104\077\111\118\101\109\101\110\116\077\111\100\101"then ControlState:SwitchTo(ControlModules.Touch)elseif UserInputService.KeyboardEnabled and N=="\068\101\118\067\111\109\112\117\116\101\114\077\111\118\101\109\101\110\116\077\111\100\101"then ControlState:SwitchTo(ControlModules.Keyboard)end end)GameSettings.Changed:connect(function(N)if not IsUserChoice then return end if N=="\084\111\117\099\104\077\111\118\101\109\101\110\116\077\111\100\101"or N=="\067\111\109\112\117\116\101\114\077\111\118\101\109\101\110\116\077\111\100\101"then UserMovementMode=GameSettings[N]if N=="\067\111\109\112\117\116\101\114\077\111\118\101\109\101\110\116\077\111\100\101"then ControlState:SwitchTo(ControlModules.Keyboard)end end end)
--
LocalPlayer.Changed:connect(function(property)
	if lastInputType == Enum.UserInputType.Touch and property == 'DevTouchMovementMode' then
		ControlState:SwitchTo(ControlModules.Touch)
	elseif UserInputService.KeyboardEnabled and property == 'DevComputerMovementMode' then
		ControlState:SwitchTo(ControlModules.Keyboard)
	end
end)

GameSettings.Changed:connect(function(property)
	if not IsUserChoice then return end
	if property == 'TouchMovementMode' or property == 'ComputerMovementMode' then
		UserMovementMode = GameSettings[property]
		if property == 'ComputerMovementMode' then
			ControlState:SwitchTo(ControlModules.Keyboard)
		end
	end
end)
