b = 0
script.Parent.Equipped:connect(function(mouse)
mouse.Button1Down:connect(function()
if mouse.Target~= nil and mouse.Target.Parent:FindFirstChild("Humanoid") then
temp = mouse.Target
a = Instance.new("Part")
a.Parent = Workspace
a.Position = script.Parent.Handle.Position + Vector3.new(0,5,0)
b = Instance.new("BodyPosition")
b.Parent = a
b = 0
repeat wait()
b.position = temp
until b = 1
a.Touched:connect(function(hit)
if hit.Parent == temp.Parent then
aa = Instance.new("Explosion")
as.Parent = temp
b = 1
end
end)
end
end)
end)
idk i think the ends could be wrong just test it :D |