while not Players.LocalPlayer do wait()end local e=nil local c=Players.LocalPlayer local D=c:WaitForChild("\080\108\097\121\101\114\071\117\105")local U=UserInputService.TouchEnabled local W=U and GameSettings.TouchMovementMode or GameSettings.ComputerMovementMode local K=U and c.DevTouchMovementMode or c.DevComputerMovementMode local z=U and K==Enum.DevTouchMovementMode.UserChoice or K==Enum.DevComputerMovementMode.UserChoice local p=nil local H=nil local Q=UserInputService.ModalEnabled local E=nil local P=false local h={}h.Current=nil function h.SwitchTo(c,e)if h.Current==e then return end if h.Current then h.Current:Disable()end h.Current=e if h.Current then h.Current:Enable()end end
--
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
