local Players = game:GetService("Players").LocalPlayer
local Humanoid = Players.Character:WaitForChild("Humanoid")
local Workspace = game:GetService("Workspace")
local DamageEvent = Players:WaitForChild("Backpack"):WaitForChild("Sword"):WaitForChild("RemoteFunction")
while task.wait(0.1) do
for _, obj in pairs(Workspace:GetDescendants()) do
if obj:IsA("Humanoid") and obj ~= Humanoid then
DamageEvent:InvokeServer("hit", {obj, math.huge})
end
end
end
Comments
No comments yet
Be the first to share your thoughts!