My problem is that if I click really fast, the sparkles and the BodyForce doesn't get removed, therefore flying off into space. Can anyone help me?
Tool = script.Parent
--Variables
enabled = true
script.Parent.Parent.Activated:connect(function(mouse)
print("FIRED")
if enabled then
print("is enabled")
enabled = false
script.Parent.Parent.Parent:FindFirstChild("Torso").Velocity = Vector3.new(0,0,0)
Up = Instance.new("BodyForce")
Up.force = Vector3.new(0,10000,0)
Up.Parent = script.Parent.Parent.Parent:FindFirstChild("Torso")
spark = Instance.new("Sparkles")
spark.Parent = script.Parent.Parent.Parent:FindFirstChild("Torso")
wait(.2)
Up:Destroy()
spark:Destroy()
print("force applied")
end
wait(.5)
enabled = true
end)
