How do I use ProximityPrompt to teleport a player to another place/game? I am very new at scripting and I really don't know how to script ProximityPrompts. I've tried looking at DevForum posts but nothing really helped me. So if someone can help, that would be much appreciated.
COMMUNITY QUESTION
How do I use ProximityPrompt to teleport a player to another place/game?
1 answer
- Place a script inside the proximity prompt. https://gyazo.com/bfaf36477eebe2b6187e3899c0caf8e1
2.Copy this into the script (edit the part you need and instructed)
local PlaceID = 5908096156 -- your place ID
script.Parent.Triggered:Connect(function(Player)
local TS = game:GetService("TeleportService")
TS:Teleport(PlaceID,Player)
end)
--Should work perfectly
This discussion is preserved as it was. New answers, comments, and votes are closed.
