TheUnsafeEnd

Rap battle

Apr 16th, 2018
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. local VoteCheatGUI = Instance.new("ScreenGui")
  2. local Player2Button = Instance.new("TextButton")
  3. local Player1Button = Instance.new("TextButton")VoteCheatGUI.Name = "VoteCheatGUI"
  4. VoteCheatGUI.Parent = game.CoreGui
  5. Player2Button.Name = "Player2Button"
  6. Player2Button.Parent = VoteCheatGUI
  7. Player2Button.BackgroundColor3 = Color3.new(1, 1, 1)
  8. Player2Button.Position = UDim2.new(0, 0, 0.800000012, 0)
  9. Player2Button.Size = UDim2.new(0, 200, 0, 50)
  10. Player2Button.Font = Enum.Font.SourceSans
  11. Player2Button.FontSize = Enum.FontSize.Size14
  12. Player2Button.TextSize = 14
  13. Player1Button.Name = "Player1Button"
  14. Player1Button.Parent = VoteCheatGUI
  15. Player1Button.BackgroundColor3 = Color3.new(1, 1, 1)
  16. Player1Button.Position = UDim2.new(0, 0, 0.699999988, 0)
  17. Player1Button.Size = UDim2.new(0, 200, 0, 50)
  18. Player1Button.Font = Enum.Font.SourceSans
  19. Player1Button.FontSize = Enum.FontSize.Size14
  20. Player1Button.TextSize = 14
  21. Player1Button.MouseButton1Down:connect(function()
  22. for i = 0,1 do
  23. game.Workspace.Votes:FireServer(false,"p1")
  24. game:GetService("RunService").Heartbeat:Wait()
  25. end
  26. end)
  27.  
  28. Player2Button.MouseButton1Down:connect(function()
  29. for i = 0,1 do
  30. game.Workspace.Votes:FireServer(false,"p2")
  31. game:GetService("RunService").Heartbeat:Wait()
  32. end
  33. end)
  34.  
  35. while true do
  36. Player2Button.Text = game.Workspace.RapBattles.Rappers.player2.Value
  37. Player1Button.Text = game.Workspace.RapBattles.Rappers.player1.Value
  38. wait(0.1)
  39. end
Add Comment
Please, Sign In to add comment