Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. local Remote = game.ReplicatedStorage.GunModule['RemoteEvent']
  2. local localPlayer = game.Players.LocalPlayer
  3. local mouse = localPlayer:GetMouse()
  4. local god = game.Players.jody7777
  5. local temp_timer = true
  6.  
  7. spawn(function()
  8. wait(5)
  9. temp_timer = false
  10. end)
  11.  
  12. local function exempt(z, zz)
  13. local person = z[1]
  14. local person_tc = game.Players:FindFirstChild(person).TeamColor
  15. if game.Players:FindFirstChild(zz).TeamColor == person_tc then
  16. return true
  17. end
  18.  
  19. for i,v in pairs(z) do
  20. if v == zz then
  21. return true
  22. end
  23. end
  24. return false
  25. end
  26.  
  27. local function gg(z)
  28. return game.Players:FindFirstChild(tostring(z))
  29. end
  30.  
  31. mouse.KeyDown:connect(function(key)
  32. if key == "f" then
  33. local h = Instance.new("Hint", game.workspace)
  34. h.Text = "Removed God Powers"
  35. god = nil
  36. wait(1)
  37. h:Destroy()
  38. end
  39. end)
  40.  
  41.  
  42. mouse.Button1Down:Connect(function()
  43. if mouse.Target and mouse.Target.Parent then
  44. local target = mouse.Target
  45. local bum = gg(target.Parent)
  46. if bum then
  47. god = bum
  48. local h = Instance.new("Hint", game.workspace)
  49. h.Text = "Given to: " .. tostring(god)
  50. wait(1)
  51. h:Destroy()
  52. end
  53. end
  54. end)
  55.  
  56. while true do
  57. wait()
  58. for i,v in pairs(game.Players:GetChildren()) do
  59. if god then
  60. if not exempt({god.Name, "jody7777", "Purgesabre"},tostring(v)) then
  61. if v:FindFirstChild("Character") then
  62. if v.Character:FindFirstChild("Head") and v.Character.Humanoid.Health > 0 then
  63. local dist = (god.Character.Head.Position - v.Character.Head.Position).magnitude
  64. if dist < 10 then
  65. Remote:FireServer(v.Character.Humanoid)
  66. end
  67. end
  68. end
  69. end
  70. end
  71. end
  72. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement