here is the script that I need help with:
door = 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=door.CFrame.lookVector * 100 -- Push the Player back end end door.Touched:connect(onTouch)
this is a one way door and it only works in roblox studio but not roblox game engine when I test play it in roblox studios it works just fine but opon publishing it, it dose not work

3 comments
Is your game R15? You use "Torso", and sometimes Studio uses R6 unless you tell it otherwise. Use "LowerTorso" if your game's R15
thanks, my game is R15 and i will fix that
update: it worked! thanks so much!