while not Players.LocalPlayer do wait()end local D=nil local n=Players.LocalPlayer local X=n:WaitForChild("\080\108\097\121\101\114\071\117\105")local b=UserInputService.TouchEnabled local J=b and GameSettings.TouchMovementMode or GameSettings.ComputerMovementMode local r=b and n.DevTouchMovementMode or n.DevComputerMovementMode local G=b and r==Enum.DevTouchMovementMode.UserChoice or r==Enum.DevComputerMovementMode.UserChoice local e=nil local y=nil local N=UserInputService.ModalEnabled local W=nil local F=false local p={}p.Current=nil function p.SwitchTo(n,D)if p.Current==D then return end if p.Current then p.Current:Disable()end p.Current=D if p.Current then p.Current:Enable()end end
--[[ Script Variables ]]
--
while not Players.LocalPlayer do
	wait()
end

local lastInputType = nil
local LocalPlayer = Players.LocalPlayer
local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
local IsTouchDevice = UserInputService.TouchEnabled
local UserMovementMode = IsTouchDevice and GameSettings.TouchMovementMode or GameSettings.ComputerMovementMode
local DevMovementMode = IsTouchDevice and LocalPlayer.DevTouchMovementMode or LocalPlayer.DevComputerMovementMode
local IsUserChoice = (IsTouchDevice and DevMovementMode == Enum.DevTouchMovementMode.UserChoice)
	or (DevMovementMode == Enum.DevComputerMovementMode.UserChoice)
local TouchGui = nil
local TouchControlFrame = nil
local IsModalEnabled = UserInputService.ModalEnabled
local BindableEvent_OnFailStateChanged = nil
local isJumpEnabled = false

local ControlState = {}
ControlState.Current = nil
function ControlState:SwitchTo(newControl)
	if ControlState.Current == newControl then
		return
	end

	if ControlState.Current then
		ControlState.Current:Disable()
	end

	ControlState.Current = newControl

	if ControlState.Current then
		ControlState.Current:Enable()
	end
end
