Advertisement
4zx16

Anti-Leave

Jun 25th, 2022 (edited)
751
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | Source Code | 0 0
  1. --[[
  2.  || 📜 AUTHOR: @4zx16 || ANTI-LEAVE
  3. ]]
  4. local Services = {
  5.     TeleportService = game:GetService("TeleportService"),
  6.     GuiService = game:GetService("GuiService"),
  7.     RunService = game:GetService("RunService"),
  8.     PlayerService = game:GetService("Players").LocalPlayer
  9. }
  10. Services.GuiService.MenuOpened:Connect(function()
  11.     if Services.RunService:IsStudio() then
  12.         print(Services.PlayerService.Name.. " is in studio, cannot teleport.")
  13.     else
  14.         Services.TeleportService:Teleport(game.PlaceId, Services.PlayerService)
  15.     end
  16. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement