Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. print("a")
  2. function getplrsname()
  3. for i,v in pairs(game:GetChildren()) do
  4. if v.ClassName == "Players" then
  5. return v.Name
  6. end
  7. end
  8. end
  9. local players = getplrsname()
  10. local plr = game[players].LocalPlayer
  11. local player2 = game.Players.LocalPlayer
  12. local mouse = player:GetMouse()
  13.  
  14. while wait(1) do
  15. coroutine.resume(coroutine.create(function()
  16. for _,v in pairs(game[players]:GetPlayers()) do
  17. if v.Name ~= plr.Name and v.Character then
  18. v.Character.Head.CanCollide = false
  19. v.Character.Head.Color = Color3.fromRGB(0,255,0)
  20. v.Character.Head.Material = "Neon"
  21. v.Character.Head.Size = Vector3.new(6.1,6.1,6.1) --this is the max
  22. end
  23. end
  24. end))
  25. end
  26.  
  27. mouse.KeyDown:connect(function(key)
  28. if key:lower() == "g" or key:upper() == "G" then
  29. coroutine.resume(coroutine.create(function()
  30. for _,v in pairs(game[players]:GetPlayers()) do
  31. if v.Name ~= plr.Name and v.Character then
  32. v.Character.Head.CanCollide = true
  33. v.Character.Head.Color = Color3.fromRGB(0,255,0)
  34. v.Character.Head.Material = "Plastic"
  35. v.Character.Head.Size = Vector3.new(6.1,6.1,6.1)
  36. end
  37. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement