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

Problem changing humanoid velocity on touch?

Asked by
Drogb4 15
7 years ago

I have this simple script, what could go wrong right? Well for some reason it works in Studio mode when testing, but it doesn't work in an actual game server any idea why?

function x(hit)
    if hit.Parent:findFirstChild("Humanoid") then
    hit.Velocity = script.Parent.CFrame.lookVector * 50 + Vector3.new(0,45,0)
end

script.Parent.Touched:connect(x)
0
Where is this script parented? Under the part in workspace? KingLoneCat 2642 — 7y
0
Yes, under a part in workspace, in a server script Drogb4 15 — 7y

Answer this question