Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-5

Help with On-Touch Sliding Door?

Asked by
Corvos 0
9 years ago

I've been looking for a good On-Touch Sliding Door tutorial but I cant find any good or new ones, does anyone know any newer or good ones that work?

Thanks!

1 answer

Log in to vote
-1
Answered by
Cr0ws 20
9 years ago

-- Try not to do requests all the time but what you can do is do a

x = script.Parent
script.Parent.Touched:connect(function(hit)
if hit.Parent:findFirstChild("Humanoid")~= nil then
     x.CFrame = x.CFrame+Vector3.new(number you want to go sideways,0,number you want to go forward or backward)
wait(5)
   x.CFrame = x.CFrame -Vector3.new(same coordinates as before)

end
end)
Ad

Answer this question