Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Velocity working on npcs and not on players?

Asked by
Laxely 3
6 years ago

Hi, this is a really simple script I made to test velocity on players.

It works perfectly fine in test mode on my player and on NPCs but when I try it in an actual game it doesn't work.

Any help is appreciated.

script.Parent.Touched:Connect(function(h)
    h.Velocity = h.Velocity + CFrame.new(h.Position,script.Parent.Position).lookVector * -1000
end)

Answer this question