This script is for a jump pad that will make a player flying up a little bit and come down. It only work in studio during solo mode but not in a online server. Help me please!
function onTouched(part)
if part.Parent ~= nil then
local h = part.Parent:findFirstChild("Humanoid")
if h~=nil then
h.Parent.Torso.Velocity=Vector3.new(0,125,0)
wait(0.5)
end
end
end
script.Parent.Touched:connect(onTouched)
print("Hello world!")

4 comments
Line 2 is pointless, pretty sure. Are there any errors? Press f9 while in a game to look at the logs.
No error
You could just anchor the part and set it's velocity to make a standard jump pad. There might be a reason why you didn't do that, though. Are you using a Regular Script?
You can trigger humanoid.Jump to make sure it will do something