Advertisement
Guest User

Arsenal Purple Team Script

a guest
Jun 15th, 2022
3,995
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. print(player.Name)
  3. local but = game.Players.LocalPlayer.PlayerGui.GUI.TeamSelection.Buttons["Pur"]:Clone()
  4. but.Visible = true
  5. local red = game.Players.LocalPlayer.PlayerGui.GUI.TeamSelection.Buttons.Rd.lock
  6. local blu = game.Players.LocalPlayer.PlayerGui.GUI.TeamSelection.Buttons.Blu.lock
  7. --but.ImageColor3 = Color3.new(100, 0.7, 0)--Red, Green, Blue.
  8. --but.Position = UDim2.new(0, -155, 1, -320)
  9. but.Parent = game.Players.LocalPlayer.PlayerGui.GUI.TeamSelection.Buttons
  10. but.MouseButton1Click:connect(function()
  11. if blu.Visible == true then
  12. game.ReplicatedStorage.Events.JoinTeam:FireServer("TRC")
  13. end
  14. if red.Visible == true then
  15. game.ReplicatedStorage.Events.JoinTeam:FireServer("TBC")
  16. end
  17.  
  18. game.Players.LocalPlayer.Status.Team.Value = "TPC"
  19.  
  20. game.ReplicatedStorage.Events.JoinTeam:FireServer("TRC")
  21. game.ReplicatedStorage.Events.KillMe:FireServer()
  22. wait(0.2)
  23. game.Players.LocalPlayer.Status.Team.Value = "TPC"
  24. game.Players.LocalPlayer.Status.Team.Value = "TPC"
  25.  
  26. wait(0.3)
  27.  
  28.  
  29. game.Players.LocalPlayer.PlayerGui.GUI.TeamSelection.Visible = false
  30. game.Players.LocalPlayer.PlayerGui.GUI.BottomFrame.Visible = false
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38. end)
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement