ADVERTISEMENTREMOVE ADS
Game icon

Auto Hit Monster

After 3 AM
1 week ago
Script preview thumbnail
Script Preview
ADVERTISEMENTREMOVE ADS
13 Lines • 823 Bytes
Verified
Raw
game:GetService("Players").LocalPlayer.Character.ChildAdded:Connect(function()
if game:GetService("Players").LocalPlayer.Character:FindFirstChild("Shotgun") then
game:GetService("RunService").Heartbeat:Connect(function()
if game:GetService("Players").LocalPlayer.Character:FindFirstChild("Shotgun") then
for _, monster in ipairs(workspace.CurrentMonsters:GetChildren()) do
if monster:FindFirstChild("Humanoid") and monster.Humanoid.Health > 0 and monster:FindFirstChild("HumanoidRootPart") then
game:GetService("Players").LocalPlayer.Character.Shotgun.DamageTargetEvent:FireServer(monster.HumanoidRootPart, monster.HumanoidRootPart.Position)
end
end
end
end)
end
end)
ADVERTISEMENTREMOVE ADS

Comments

0 comments
to add a comment
Loading comments
ADVERTISEMENTREMOVE ADS