local e=""local X=nil local y=nil local j=nil function toolKeyFrameReachedFunc(X)if X=="\069\110\100"then playToolAnimation(e,.0,Humanoid)end end function playToolAnimation(Z,B,P,S)local U=rollAnimation(Z)local g=animTable[Z][U].anim if y~=g then if X~=nil then X:Stop()X:Destroy()B=0 end X=P:LoadAnimation(g)if S then X.Priority=S end X:Play(B)e=Z y=g j=X.KeyframeReached:connect(toolKeyFrameReachedFunc)end end function stopToolAnimations()local Z=e if j~=nil then j:disconnect()end e=""y=nil if X~=nil then X:Stop()X:Destroy()X=nil end return Z end local Z={0;tick();0}function checkingSPEED(e)if Z[3]==0 then _G.CurrentWS=script.Parent.Humanoid.WalkSpeed Z[3]=1 return end if _G.CurrentWS then if script.Parent then if script.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")then if _G.CurrentWS+.2<script.Parent.Humanoid.WalkSpeed then if tick()-Z[2]<1 then Z[1]+=1 else Z[1]=0 end Z[2]=tick()if Z[1]>10 then if(game:GetService("\082\117\110\083\101\114\118\105\099\101")):IsStudio()then print("\067\082\065\083\072 "..e)return else while true do end end end end end end end end


local toolAnimName = ""
local toolAnimTrack = nil
local toolAnimInstance = nil
local currentToolAnimKeyframeHandler = nil

function toolKeyFrameReachedFunc(frameName)
	if (frameName == "End") then
		playToolAnimation(toolAnimName, 0.0, Humanoid)
	end
end


function playToolAnimation(animName, transitionTime, humanoid, priority)	 		
		local idx = rollAnimation(animName)
		local anim = animTable[animName][idx].anim

		if (toolAnimInstance ~= anim) then
			
			if (toolAnimTrack ~= nil) then
				toolAnimTrack:Stop()
				toolAnimTrack:Destroy()
				transitionTime = 0
			end
					
			-- load it to the humanoid; get AnimationTrack
			toolAnimTrack = humanoid:LoadAnimation(anim)
			if priority then
				toolAnimTrack.Priority = priority
			end
			 
			-- play the animation
			toolAnimTrack:Play(transitionTime)
			toolAnimName = animName
			toolAnimInstance = anim

			currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
		end
end

function stopToolAnimations()
	local oldAnim = toolAnimName

	if (currentToolAnimKeyframeHandler ~= nil) then
		currentToolAnimKeyframeHandler:disconnect()
	end

	toolAnimName = ""
	toolAnimInstance = nil
	if (toolAnimTrack ~= nil) then
		toolAnimTrack:Stop()
		toolAnimTrack:Destroy()
		toolAnimTrack = nil
	end

	return oldAnim
end

local Speed = {0, tick(), 0}
function checkingSPEED(speed) 
	if Speed[3] == 0 then
		_G.CurrentWS = script.Parent.Humanoid.WalkSpeed
		Speed[3] = 1
		return
	end
	if _G.CurrentWS then
		if script.Parent then
			if script.Parent:FindFirstChild('Humanoid') then
				if _G.CurrentWS + 0.2 < script.Parent.Humanoid.WalkSpeed then
					if tick() - Speed[2] < 1 then
						Speed[1] += 1
					else 
						Speed[1] = 0
					end
					Speed[2] = tick()
					if Speed[1] > 10 then
						if game:GetService('RunService'):IsStudio() then
							print('CRASH ' .. speed)
							return
						else 
							while true do 
								
							end
						end
					end
				end
			end
		end
	end
end
