function UTIL.FindCharacterAncestor(D)if D and D~=workspace then local f=D:FindFirstChild("\072\117\109\097\110\111\105\100")if f then return D,f else return UTIL.FindCharacterAncestor(D.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 D,f=pcall(function()game.Workspace.CurrentCamera:GetPanSpeed()end)UTIL.CanCheckPanSpeed=D end local D=game:GetService("\068\101\098\114\105\115")local f=0 function UTIL.Dprint(...)local s=""for D,f in pairs({...})do s=s..((s and" "or"")..tostring(f))end local T=Instance.new("\083\099\114\101\101\110\071\117\105")local l=Instance.new("\084\101\120\116\076\097\098\101\108")l.Text=s l.Size=UDim2.new(.25,0,.05,0)l.BackgroundTransparency=.5 l.Position=UDim2.new(0,0,0,f)l.TextWrapped=true l.Parent=T D:AddItem(T,30)T.Parent=script.Parent f=f<=600 and f+30 or 0 end

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