I need help making a script that teleports you from point A to point B upon touching the part, followed by an opening door animation.
Inside the door write this:
script.Parent.Touched:Connect(function(hit) if game.Players:GetPlayerFromCharacter(hit.Parent)then local RootPart = hit.Parent:FindFirstChild("HumanoidRootPart") RootPart.CFrame = CFrame.new(0, 0, 0) --Here put the position of the part you want to be teleported to end end)