Advertisement
Guest User

teleport player

a guest
Oct 4th, 2021
21,468
2
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.91 KB | None | 2 0
  1. ----------------------
  2. -- SHARK X HUB NO 1 --
  3. ----------------------
  4.  
  5. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
  6. local Window = Library.CreateLib("SHARK X HUB", "DarkTheme")
  7. local Tab = Window:NewTab("Players")
  8. local Section = Tab:NewSection("Teleport")
  9.  
  10. --------------------
  11.  
  12. players = {}
  13.  
  14. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  15.    table.insert(players,v.Name)
  16. end
  17.  
  18. Section:NewDropdown("Select Player", " ", players, function(abc)
  19.     Select = abc
  20. end)
  21.  
  22.  
  23. Section:NewButton("Refresh", " ", function()
  24.     table.clear(players)
  25. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  26.    table.insert(players,v.Name)
  27. end
  28. end)
  29.  
  30. Section:NewButton("Teleport", " ", function()
  31.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[Select].Character.HumanoidRootPart.CFrame
  32. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement