Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local lp = game:GetService("Players").LocalPlayer
- local x = lp:WaitForChild("PlayerGui"):WaitForChild("ScreenGui"):WaitForChild("Beam")
- while true do
- pcall(function()
- for i,v in pairs(game.Players:GetPlayers()) do
- if v == lp then continue end
- if not v or not v.Character or not v.Character:FindFirstChild("Head") or not v.Character:FindFirstChild("Humanoid") or v.Character:FindFirstChildOfClass("ForceField") or v.Character.Humanoid.Health <= 0 then continue end
- if (lp.Character.HumanoidRootPart.Position-v.Character.HumanoidRootPart.Position).magnitude > 250 then continue end
- local idc1,idc2,yes = workspace:FindPartOnRayWithIgnoreList(Ray.new(lp.Character.Gun.Handle.CFrame.p, (v.Character.Head.Position - lp.Character.Gun.Handle.CFrame.p).unit * 300), { lp.Character, workspace.pets }, false, true);
- if not idc1 or not idc1:IsDescendantOf(v.Character) then continue end
- x:Fire(lp.Character.Gun,v.Character.Head.Position,v.Character.Head,yes)
- wait()
- end
- end)
- game:GetService("RunService").RenderStepped:Wait()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement