Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- || 📜 AUTHOR: @4zx16 || ANTI-LEAVE
- ]]
- local Services = {
- TeleportService = game:GetService("TeleportService"),
- GuiService = game:GetService("GuiService"),
- RunService = game:GetService("RunService"),
- PlayerService = game:GetService("Players").LocalPlayer
- }
- Services.GuiService.MenuOpened:Connect(function()
- if Services.RunService:IsStudio() then
- print(Services.PlayerService.Name.. " is in studio, cannot teleport.")
- else
- Services.TeleportService:Teleport(game.PlaceId, Services.PlayerService)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement