Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- warn("LOADING SCRIPT, MADE BY ProtonDev-Sys#4419")
- local old
- old = hookfunction(game:GetService("ReplicatedStorage").modules.network.replicatePlayerAnimationSequence.FireServer,function(...)
- local args = {...}
- for i , v in pairs({...}) do
- if v == 'monster' then
- args[i] = 'equipment'
- end
- end
- return old(unpack(args))
- end)
- local c = 1
- coroutine.wrap(function()
- while wait(1) do
- c = 1
- end
- end)()
- function dmg(v)
- if v:FindFirstChild('health') == nil or v.health.Value <= 0 then
- return
- end
- game:GetService("ReplicatedStorage").modules.network.fireEvent:FireServer("playerWillUseBasicAttack", game.Players.LocalPlayer)
- local ohString1 = "daggerAnimations"
- local ohTable3 = {
- ["attackSpeed"] = 0
- }
- game:GetService("ReplicatedStorage").modules.network.replicatePlayerAnimationSequence:FireServer(ohString1, "strike1", ohTable3)
- game:GetService("ReplicatedStorage").modules.network.playerRequest_damageEntity:FireServer(v, game.Players.LocalPlayer.Character.PrimaryPart.Position, 'equipment')
- game:GetService("ReplicatedStorage").modules.network.replicatePlayerAnimationSequence:FireServer(ohString1, "strike2", ohTable3)
- game:GetService("ReplicatedStorage").modules.network.playerRequest_damageEntity:FireServer(v, game.Players.LocalPlayer.Character.PrimaryPart.Position, 'equipment')
- end
- function attack()
- for i , v in pairs(game:GetService("Workspace").placeFolders.entityRenderCollection:GetChildren()) do
- if v:FindFirstChild('clientHitboxToServerHitboxReference') and v.clientHitboxToServerHitboxReference.Value ~= nil then
- if v.clientHitboxToServerHitboxReference.Value.Name == 'hitbox' and game.Players:FindFirstChild(v.clientHitboxToServerHitboxReference.Value.Parent.Name) == nil or v.clientHitboxToServerHitboxReference.Value.Name ~= 'hitbox' then
- if (v.clientHitboxToServerHitboxReference.Value.Position-game.Players.LocalPlayer.Character.PrimaryPart.Position).magnitude <= 15 then
- dmg(v.clientHitboxToServerHitboxReference.Value)
- end
- end
- end
- end
- end
- coroutine.wrap(function()
- while wait() do
- for i , v in pairs(game:GetService("Workspace").placeFolders.items:GetChildren()) do
- if v.ClassName ~= 'Model' and (v.Position-game.Players.LocalPlayer.Character.PrimaryPart.Position).magnitude < 50 or v.ClassName == 'Model' and (v.PrimaryPart.Position-game.Players.LocalPlayer.Character.PrimaryPart.Position).magnitude < 50 then
- game:GetService("ReplicatedStorage").modules.network.pickUpItemRequest:InvokeServer(v)
- end
- end
- end
- end)()
- coroutine.wrap(function()
- while wait() do
- game.Players.LocalPlayer.Character.hitbox.stamina.Value = game.Players.LocalPlayer.Character.hitbox.maxStamina.Value
- end
- end)()
- while wait(.1) do
- attack()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement