Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- First script=
- -- Unit X
- loadstring(game:HttpGet("https://shorturl.at/f5xHw"))()
- Second script=
- -- Fix Attack
- local module = {
- NextAttack = 0,
- Distance = 55,
- attackMobs = true,
- attackPlayers = true
- }
- local Player = game:GetService("Players")
- function module:GetBladeHits()
- local BladeHits = {}
- for _, Enemy in game:GetService("Workspace").Enemies:GetChildren() do
- if Enemy:FindFirstChild("HumanoidRootPart") then
- table.insert(BladeHits, Enemy.HumanoidRootPart)
- end
- end
- return BladeHits
- end
- function module:attack()
- local BladeHits = self:GetBladeHits()
- game:GetService("ReplicatedStorage").Modules.Net:WaitForChild("RE/RegisterAttack"):FireServer(0)
- for _, Hit in BladeHits do
- game:GetService("ReplicatedStorage").Modules.Net:WaitForChild("RE/RegisterHit"):FireServer(Hit)
- end
- end
- spawn(function()
- while wait(0.05) do
- module:attack()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement