I have multiple parts named "MainTeleportPart" in the Workspace that I want to be able to teleport to, but it only teleports to one of them until the server restarts, then it's a different one over again. How would I be able to do that?
script.Parent.MouseButton1Down:connect(function()
script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = game.Workspace.MainTeleportPart.CFrame
if script.Parent.Parent.Parent.Parent.Character:findFirstChild("ForceField") then
script.Parent.Parent.Parent.Parent.Character["ForceField"]:remove()
end
end)

1 comment
Works, thanks!