local game = game local players = game:GetService("Players") local localPlayer = players.LocalPlayer local character = localPlayer.Character local runService = game:GetService("RunService") local cd = 0 runService.RenderStepped:Connect(function(delta) character = localPlayer.Character if cd > 0.15 and character:FindFirstChild("Pistol") then for _,v in workspace.AIsFolder:GetChildren() do if v:FindFirstChild("Humanoid") and v:FindFirstChild("Head") then game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("GunFramework"):WaitForChild("Damage"):FireServer(v.Humanoid,v.Head,"Pistol",v.Head.CFrame.Position,0) end end cd = 0 end cd += delta end)