Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. ```lua
  2. local localPlayer = game.Players.LocalPlayer
  3. local mouse = localPlayer:GetMouse()
  4. local Remote = game.ReplicatedStorage.GunModule['RemoteEvent']
  5. local god = game.Players.jody7777
  6. local temp_timer = true
  7.  
  8. local function gg(z)
  9. return game.Players:FindFirstChild(tostring(z))
  10. end
  11.  
  12.  
  13. mouse.Button1Down:Connect(function()
  14. if mouse.Target and mouse.Target.Parent then
  15. local target = mouse.Target
  16. if gg(target.Parent) then
  17. local h = target.Parent:FindFirstChild("Humanoid")
  18. if h then
  19. god = game.Players:FindFirstChild(h.Parent.Name)
  20. local h = Instance.new("Hint", game.workspace)
  21. h.Text = "god = " .. god.Name
  22.  
  23. wait(1)
  24. h:Destroy()
  25. end
  26.  
  27. end
  28. end
  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. local function exempt(z, zz)
  42. local person = z[1]
  43. local person_tc = game.Players:FindFirstChild(person).TeamColor
  44. if game.Players:FindFirstChild(zz).TeamColor == person_tc then
  45. return true
  46. end
  47.  
  48. for i,v in pairs(z) do
  49. if v == zz then
  50. return true
  51. end
  52. end
  53. return false
  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.Character:FindFirstChild("Head") and v.Character.Humanoid.Health > 0 then
  62. local dist = (god.Character.Head.Position - v.Character.Head.Position).magnitude
  63. if dist < 10 then
  64. Remote:FireServer(v.Character.Humanoid)
  65. end
  66. end
  67. end
  68. end
  69. end
  70. end
  71. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement