Hi. I am making a hotel game and my hotel doesn't have room for a real moving elevator. I built an elevator box under the map and I was hoping that there was a way that I could tp only one person. Here is the code I have now. It teleports everybody in the game when you click it. Thats why I am here: ~~~~~~~~~~~~~~~~~
function onClicked()
local c = game.Players:GetChildren() for i = 1, #c do c[i].Character.UpperTorso.CFrame = CFrame.new(script.Parent.Parent.Teleport1.Position)--change "teleport1" to the name of the object you want to be teled to... end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
Can you help please? It tps everyone in the game to it and we often get stuck in walls. This script is in the button that tps to the inside of the elevator. So its like there is an elevator door with a button beside it. When you click the button it teleports you to the inner elevator.

1 comment
Use a Touched:Connect script instead