LocalPlayer.Changed:connect(function(t)if lastInputType==Enum.UserInputType.Touch and t=="\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 t=="\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(t)if not IsUserChoice then return end if t=="\084\111\117\099\104\077\111\118\101\109\101\110\116\077\111\100\101"or t=="\067\111\109\112\117\116\101\114\077\111\118\101\109\101\110\116\077\111\100\101"then UserMovementMode=GameSettings[t]if t=="\084\111\117\099\104\077\111\118\101\109\101\110\116\077\111\100\101"then ControlState:SwitchTo(ControlModules.Touch)elseif t=="\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)
--[[ Settings Changed Connections ]]
--
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 == "TouchMovementMode" then
			ControlState:SwitchTo(ControlModules.Touch)
		elseif property == "ComputerMovementMode" then
			ControlState:SwitchTo(ControlModules.Keyboard)
		end
	end
end)
