I remember this script use to work in the old Roblox days but no longer works, what is the fix to this. Thanks!
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)
