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)

2 comments

0

Where is this script parented? Under the part in workspace?

0

Yes, under a part in workspace, in a server script