DumbShit

Counter Blox

Mar 27th, 2020
1,225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. local plr = game:GetService('Players').LocalPlayer
  2. local team = game:GetService("ReplicatedStorage").Events.JoinTeam
  3. local data = game:GetService("Workspace").Status
  4. local v_u = game:GetService('VirtualUser')
  5.  
  6. local function win_check()
  7. if data.TWins.Value > data.CTWins.Value and plr.Team ~= 'Terrorists' then
  8. team:FireServer('T')
  9. elseif plr.Team ~= 'Counter-Terrorists' then
  10. team:FireServer('CT')
  11. end
  12. end
  13.  
  14. plr.Idled:Connect(function()
  15. v_u:CaptureController()
  16. v_u:ClickButton2(Vector2.new())
  17. end)
  18.  
  19. game:GetService('RunService'):BindToRenderStep('win_check',190,win_check)
Add Comment
Please, Sign In to add comment