Ok so I have Filtering Enabled and I would like to keep it on and I have a tool named "Football"
Inside the Football tool, is a LocalScript and inside that LocalScript is a Script.
And inside the Script, i want it to subtract 1.75 from the velocity of the Tool's handle until it hits an object.
When i run it in studio it works perfectly, but actually in-game it doesn't work at all it just floats away.
Here Is The Script
local replicatedstorage = game:GetService("ReplicatedStorage") local players = game:GetService("Players") local bodyp = script.Parent.BodyVelocity local bodya = script.Parent.BodyAngularVelocity local connection = nil local power=tonumber(script.Name) or 0; function OnTouch(hit) if (hit.CanCollide and hit.Anchored) then bodya:Remove() bodyp:Remove() connection:disconnect() end end connection = script.Parent.Touched:connect(OnTouch) while true do wait() bodyp.velocity=bodyp.velocity-Vector3.new(0,1.75,0); end
The Script and LocalScript does not use any RemoteEvents but everything else works perfectly its just this part
while true do
wait()
bodyp.velocity=bodyp.velocity-Vector3.new(0,1.75,0);
end