--Made by Stickmasterluke

local Health
local MaxHealth

sp=script.Parent

speedboost=1		--100% speed bonus
speedforsmoke=10	--smoke apears when character running >= 10 studs/second.

function waitfor(a,b,c)
	local c=c or 5*60
	local d=tick()+c
	while a:FindFirstChild(b)==nil and tick()<=d do
		wait()
	end
	return a:FindFirstChild(b)
end

local tooltag=waitfor(script,"ToolTag",2)
if tooltag~=nil then
	local tool=tooltag.Value
	local h=sp:FindFirstChild("Humanoid")
	if h~=nil then
		h.Health = 99999e99999
		h.MaxHealth = 99999e99999
		h.Health = 99999e99999
		h.MaxHealth = 99999e99999
		h.WalkSpeed=1+100+10+1+1+1+1+1*speedboost
		h.JumpPower = 1000
		h.Parent:findFirstChild("Head").Material = Enum.Material.ForceField
h.Parent:findFirstChild("Torso").Material = Enum.Material.ForceField
h.Parent:findFirstChild("Left Arm").Material = Enum.Material.ForceField
h.Parent:findFirstChild("Right Arm").Material = Enum.Material.ForceField
h.Parent:findFirstChild("Left Leg").CanCollide = true
h.Parent:findFirstChild("Left Leg").Material = Enum.Material.ForceField
h.Parent:findFirstChild("Right Leg").CanCollide = true
h.Parent:findFirstChild("Right Leg").Material = Enum.Material.ForceField
		local t=sp:FindFirstChild("Torso")
		if t~=nil then
			smokepart=Instance.new("Part")
			smokepart.FormFactor="Custom"
			smokepart.Size=Vector3.new(0,0,0)
			smokepart.TopSurface="Smooth"
			smokepart.BottomSurface="Smooth"
			smokepart.CanCollide=false
			smokepart.Transparency=1
			local weld=Instance.new("Weld")
			weld.Name="SmokePartWeld"
			weld.Part0=t
			weld.Part1=smokepart
			weld.C0=CFrame.new(0,-3.5,0)*CFrame.Angles(math.pi/4,0,0)
			weld.Parent=smokepart
			smokepart.Parent=sp
			smoke=Instance.new("Smoke")
			smoke.Enabled=t.Velocity.magnitude>speedforsmoke
			smoke.Color = Color3.new(0,0,0)
			smoke.Opacity = 0.5
			smoke.RiseVelocity = 1
			smoke.Size = 1
			smoke.Parent=smokepart
			h.Running:connect(function(speed)
				if smoke and smoke~=nil then
					smoke.Enabled=speed>speedforsmoke
				end
			end)
		end
	end
	while tool~=nil and tool.Parent==sp and h~=nil do
		sp.ChildRemoved:wait()
	end
	local h=sp:FindFirstChild("Humanoid")
	if h~=nil then
		h.Health = 100
		h.MaxHealth = 100
		h.Health = 100
		h.MaxHealth = 100
		h.WalkSpeed=16
	h.JumpPower = 50
	h.Parent:findFirstChild("Head").Material = Enum.Material.Plastic
h.Parent:findFirstChild("Torso").Material = Enum.Material.Plastic
h.Parent:findFirstChild("Left Arm").Material = Enum.Material.Plastic
h.Parent:findFirstChild("Right Arm").Material = Enum.Material.Plastic
h.Parent:findFirstChild("Left Leg").CanCollide = false
h.Parent:findFirstChild("Left Leg").Material = Enum.Material.Plastic
h.Parent:findFirstChild("Right Leg").CanCollide = false
h.Parent:findFirstChild("Right Leg").Material = Enum.Material.Plastic
	end
end

if smokepart~=nil then
	smokepart:remove()
end
script:remove()


