if script.Name~="\069\120\112\108\111\100\101"then if hit~=nil and(hit.Anchored and(hit.CanCollide and hit.Transparency<1))then script.Parent.Anchored=true script.Parent.CFrame=CFrame.new(pos,pos+vel)*CFrame.Angles(math.pi/-2,0,0)script.Parent.Stick:Play()wait(10)for f=0,1,.02 do wait(.05)script.Parent.Transparency=f end elseif hit~=nil and hit.Parent~=nil then if hit.Parent.className=="\072\097\116"and hit.Parent.Parent:FindFirstChild("\072\101\097\100")~=nil then hit=hit.Parent.Parent.Head end if hit.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")~=nil and hit.Parent.Humanoid.Health>0 then hit.Parent.Humanoid:TakeDamage(100)local f=script.Parent.Kill f.Parent=hit.Parent:FindFirstChild("\072\101\097\100")f:Play()hit.Velocity=vel.unit*15 game.Debris:AddItem(f,2)end end script.Parent:Remove()else local f=Instance.new("\069\120\112\108\111\115\105\111\110")f.Hit:connect(function(f,S)if f.Parent~=nil and f.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")~=nil then if f.Parent.Name~=script.Parent.Name then f.Parent.Humanoid:TakeDamage(100)end end end)f.Position=pos f.BlastPressure=100 f.DestroyJointRadiusPercent=0 f.Parent=workspace wait()script.Parent:Remove()end
--[[

repeat until not script.Parent.Touched:wait():IsDescendantOf(game.Players[script.Parent.Name].Character) 
script.Parent.Throw:Stop()

local vel = script.Parent.Velocity
local trace = Ray.new(script.Parent.Position,vel*10)
local hit,pos = workspace:FindPartOnRay(trace,game.Players[script.Parent.Name].Character)

--]]

if script.Name ~= "Explode" then
	if hit ~= nil and hit.Anchored and hit.CanCollide and hit.Transparency < 1 then
		script.Parent.Anchored = true
		script.Parent.CFrame = CFrame.new(pos, pos + vel) * CFrame.Angles(math.pi / -2, 0, 0)
		script.Parent.Stick:Play()

		wait(10)
		for i = 0, 1, 0.02 do
			wait(0.05)
			script.Parent.Transparency = i
		end
	elseif hit ~= nil and hit.Parent ~= nil then
		if hit.Parent.className == "Hat" and hit.Parent.Parent:FindFirstChild("Head") ~= nil then
			hit = hit.Parent.Parent.Head
		end
		if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent.Humanoid.Health > 0 then
			hit.Parent.Humanoid:TakeDamage(100)
			local s = script.Parent.Kill
			s.Parent = hit.Parent:FindFirstChild("Head")
			s:Play()
			hit.Velocity = vel.unit * 15
			game.Debris:AddItem(s, 2)
		end
	end
	script.Parent:Remove()
else
	local e = Instance.new("Explosion")
	e.Hit:connect(function(part, dist)
		if part.Parent ~= nil and part.Parent:FindFirstChild("Humanoid") ~= nil then
			if part.Parent.Name ~= script.Parent.Name then
				part.Parent.Humanoid:TakeDamage(100)
			end
		end
	end)
	e.Position = pos
	e.BlastPressure = 100
	e.DestroyJointRadiusPercent = 0
	e.Parent = workspace
	--script.Parent.Parent = nil
	wait()
	script.Parent:Remove()
end
