Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local UserInputService = game:GetService("UserInputService")
- local RunService = game:GetService("RunService")
- local LocalPlayer = Players.LocalPlayer
- local PlayerData = LocalPlayer.Data.Value
- getgenv().Enabled = true
- UserInputService.InputBegan:Connect(function(Input, GPE)
- if not GPE then
- if Input.KeyCode == Enum.KeyCode.RightShift then
- Enabled = false
- end
- end
- end)
- while true do
- for _, Player in next, Players:GetPlayers() do
- if Player ~= LocalPlayer then
- if Player.Character and Player.Character:FindFirstChild("HumanoidRootPart") and Player.Character:FindFirstChild("Head") and Player.Character.Head.HeadTag.Label.TextColor3 ~= Color3.new(0, 255, 0) then
- local Tool = Player.Character:FindFirstChildOfClass("Tool")
- if Tool then
- ReplicatedStorage.RemoteEvents.OnGunFiredServer:FireServer({
- Normal = Vector3.new(0, 0, 0),
- HitPart = Player.Character.HumanoidRootPart,
- HitPosition = Player.Character.HumanoidRootPart.Position
- })
- wait(1)
- end
- end
- end
- end
- RunService.RenderStepped:Wait()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement