function UTIL.FindCharacterAncestor(E)if E and E~=Workspace then local e=E:FindFirstChild("\072\117\109\097\110\111\105\100")if e then return E,e else return UTIL.FindCharacterAncestor(E.Parent)end end return nil end UTIL.AssetURL="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061"UTIL.TouchEnabled=(game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")).TouchEnabled do local E,e=pcall(function()game.Workspace.CurrentCamera:GetPanSpeed()end)UTIL.CanCheckPanSpeed=E end local E=Game:GetService("\068\101\098\114\105\115")local e=0 function UTIL.Dprint(...)local Z=""for E,e in pairs({...})do Z=Z..((Z and" "or"")..tostring(e))end local B=Instance.new("\083\099\114\101\101\110\071\117\105")local J=Instance.new("\084\101\120\116\076\097\098\101\108")J.Text=Z J.Size=UDim2.new(.25,0,.05,0)J.BackgroundTransparency=.5 J.Position=UDim2.new(0,0,0,e)J.TextWrapped=true J.Parent=B E:AddItem(B,30)B.Parent=script.Parent e=e<=600 and e+30 or 0 end
-- Returns a character ancestor and its Humanoid, or nil
function UTIL.FindCharacterAncestor(subject)
	if subject and subject ~= Workspace then
		local humanoid = subject:FindFirstChild("Humanoid")
		if humanoid then
			return subject, humanoid
		else
			return UTIL.FindCharacterAncestor(subject.Parent)
		end
	end
	return nil
end

UTIL.AssetURL = "http://www.roblox.com/asset/?id="

UTIL.TouchEnabled = game:GetService("UserInputService").TouchEnabled
do
	local suceeded, _ = pcall(function()
		game.Workspace.CurrentCamera:GetPanSpeed()
	end)
	UTIL.CanCheckPanSpeed = suceeded
end

local DebrisService = Game:GetService("Debris")
local DebugPrintOffset = 0
function UTIL.Dprint(...)
	local line = ""
	for _, segment in pairs({ ... }) do
		line = line .. (line and " " or "") .. tostring(segment)
	end
	local gui = Instance.new("ScreenGui")
	local label = Instance.new("TextLabel")
	label.Text = line
	label.Size = UDim2.new(0.25, 0, 0.05, 0)
	label.BackgroundTransparency = 0.5
	label.Position = UDim2.new(0, 0, 0, DebugPrintOffset)
	label.TextWrapped = true
	label.Parent = gui
	DebrisService:AddItem(gui, 30)
	gui.Parent = script.Parent
	DebugPrintOffset = (DebugPrintOffset <= 600) and DebugPrintOffset + 30 or 0
end
