WolfGamesProgrammer

Team Client

Feb 11th, 2024
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | Source Code | 0 0
  1. function ChangeTeam()
  2.     local Tm = "" -- В скобках указать название команды
  3.     local rank = 0 -- с какого уровня можно зайти за команду
  4.     if  game.Players.LocalPlayer.leaderstats.Level.Value >= rank then
  5.         game.ReplicatedStorage.events.ChangeTeam:FireServer(Tm)
  6.         wait(1)
  7.         script.Parent.Parent.Visible = false
  8.     end
  9. end
  10. script.Parent.MouseButton1Click:Connect(ChangeTeam)
Advertisement
Add Comment
Please, Sign In to add comment