Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local localPlayer = game.Players.LocalPlayer
- local mouse = localPlayer:GetMouse()
- local Remote = game.ReplicatedStorage.GunModule['RemoteEvent']
- local god = game.Players.jody7777
- local temp_timer = true
- local function gg(z)
- return game.Players:FindFirstChild(tostring(z))
- end
- mouse.Button1Down:Connect(function()
- print(mouse.Target.Parent, mouse.Target.Parent.Parent)
- if mouse.Target and mouse.Target.Parent then
- local target = mouse.Target.Parent
- if gg(target.Parent) then
- local h = target.Parent:FindFirstChild("Humanoid")
- if h then
- god = game.Players:FindFirstChild(h.Parent.Name)
- local h = Instance.new("Hint", game.workspace)
- h.Text = "god = " .. god.Name
- print("god = " .. god.Name)
- wait(1)
- h:Destroy()
- end
- end
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == "f" then
- print("clr")
- local h = Instance.new("Hint", game.workspace)
- h.Text = "Removed God Powers"
- god = nil
- wait(1)
- h:Destroy()
- end
- end)
- local function exempt(z, zz)
- local person = z[1]
- local person_tc = game.Players:FindFirstChild(person).TeamColor
- if game.Players:FindFirstChild(zz).TeamColor == person_tc then
- return true
- end
- for i,v in pairs(z) do
- if v == zz then
- return true
- end
- end
- return false
- end
- while true do
- wait()
- for i,v in pairs(game.Players:GetChildren()) do
- if god then
- if not exempt({god.Name, "jody7777", "Purgesabre"},tostring(v)) then
- if v.Character then
- if v.Character:FindFirstChild("Head") and v.Character.Humanoid.Health > 0 then
- local dist = (god.Character.Head.Position - v.Character.Head.Position).magnitude
- if dist < 10 then
- Remote:FireServer(v.Character.Humanoid)
- end
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement