This is some code I did to catapult you according to where the faithplate part is facing. It works flawlessly in Studio, but in game, it doesn't do anything. It is a server script, by the way.

Any help would be appreciated.

faithplate = script.Parent

function onTouch(hit)



	if hit.Parent == nil then return end
	local h = hit.Parent:FindFirstChild("Humanoid")
	if h ~= nil then
		hit.Parent.Torso.Velocity=faithplate.CFrame.lookVector * 200
	end
end
faithplate.Touched:connect(onTouch)

(( Also, this is something from Portal 2 I'm trying to recreate. ))