Advertisement
Guest User

Untitled

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