local m=nil local D=nil if UIS.TouchEnabled then m=Instance.new("\066\105\110\100\097\098\108\101\069\118\101\110\116")m.Name="\079\110\067\108\105\099\107\084\111\077\111\118\101\070\097\105\108\083\116\097\116\101\067\104\097\110\103\101"D=Instance.new("\066\105\110\100\097\098\108\101\069\118\101\110\116")D.Name="\069\110\097\098\108\101\084\111\117\099\104\074\117\109\112"local j=script.Parent local G=j.Parent m.Parent=G D.Parent=G end local function j(m,D,j)return j>D and D or j<m and m or j end
-- Bindable for when we want touch emergency controls
-- TODO: Click to move should probably have it's own gui touch controls
-- to manage this.
local BindableEvent_OnFailStateChanged = nil
local BindableEvent_EnableTouchJump = nil
if UIS.TouchEnabled then
	BindableEvent_OnFailStateChanged = Instance.new("BindableEvent")
	BindableEvent_OnFailStateChanged.Name = "OnClickToMoveFailStateChange"
	BindableEvent_EnableTouchJump = Instance.new("BindableEvent")
	BindableEvent_EnableTouchJump.Name = "EnableTouchJump"
	local CameraScript = script.Parent
	local PlayerScripts = CameraScript.Parent
	BindableEvent_OnFailStateChanged.Parent = PlayerScripts
	BindableEvent_EnableTouchJump.Parent = PlayerScripts
end

local function clamp(low, high, num)
	return (num > high and high or num < low and low or num)
end
