Advertisement
Honansik

Strucid Rejoin on Vote Kick

Aug 15th, 2021
1,774
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | None | 0 0
  1. getgenv().Toggle = true --// Test whether the script is on or off
  2. game:GetService("RunService").Heartbeat:Connect(function()
  3.   if getgenv().Toggle then
  4.    if game:GetService("Players").LocalPlayer.PlayerGui.MenuUI.VoteKick and game:GetService("Players").LocalPlayer.PlayerGui.MenuUI.VoteKick.Title.Text == "Vote Kick <font color = '#FFA500'>".. game.Players.LocalPlayer.Name .. "</font>?" then
  5. game:GetService("TeleportService"):Teleport(game.PlaceId)
  6.    else
  7. wait()
  8. end
  9. end
  10. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement