Advertisement
kingGGGGGTH123

Vesteria

Jan 21st, 2021
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1. warn("LOADING SCRIPT, MADE BY ProtonDev-Sys#4419")
  2. local old
  3. old = hookfunction(game:GetService("ReplicatedStorage").modules.network.replicatePlayerAnimationSequence.FireServer,function(...)
  4. local args = {...}
  5. for i , v in pairs({...}) do
  6. if v == 'monster' then
  7. args[i] = 'equipment'
  8. end
  9. end
  10. return old(unpack(args))
  11. end)
  12. local c = 1
  13. coroutine.wrap(function()
  14. while wait(1) do
  15. c = 1
  16. end
  17. end)()
  18. function dmg(v)
  19. if v:FindFirstChild('health') == nil or v.health.Value <= 0 then
  20. return
  21. end
  22. game:GetService("ReplicatedStorage").modules.network.fireEvent:FireServer("playerWillUseBasicAttack", game.Players.LocalPlayer)
  23. local ohString1 = "daggerAnimations"
  24. local ohTable3 = {
  25. ["attackSpeed"] = 0
  26. }
  27.  
  28. game:GetService("ReplicatedStorage").modules.network.replicatePlayerAnimationSequence:FireServer(ohString1, "strike1", ohTable3)
  29. game:GetService("ReplicatedStorage").modules.network.playerRequest_damageEntity:FireServer(v, game.Players.LocalPlayer.Character.PrimaryPart.Position, 'equipment')
  30. game:GetService("ReplicatedStorage").modules.network.replicatePlayerAnimationSequence:FireServer(ohString1, "strike2", ohTable3)
  31. game:GetService("ReplicatedStorage").modules.network.playerRequest_damageEntity:FireServer(v, game.Players.LocalPlayer.Character.PrimaryPart.Position, 'equipment')
  32.  
  33. end
  34. function attack()
  35. for i , v in pairs(game:GetService("Workspace").placeFolders.entityRenderCollection:GetChildren()) do
  36. if v:FindFirstChild('clientHitboxToServerHitboxReference') and v.clientHitboxToServerHitboxReference.Value ~= nil then
  37. if v.clientHitboxToServerHitboxReference.Value.Name == 'hitbox' and game.Players:FindFirstChild(v.clientHitboxToServerHitboxReference.Value.Parent.Name) == nil or v.clientHitboxToServerHitboxReference.Value.Name ~= 'hitbox' then
  38. if (v.clientHitboxToServerHitboxReference.Value.Position-game.Players.LocalPlayer.Character.PrimaryPart.Position).magnitude <= 15 then
  39. dmg(v.clientHitboxToServerHitboxReference.Value)
  40. end
  41. end
  42. end
  43. end
  44. end
  45. coroutine.wrap(function()
  46. while wait() do
  47. for i , v in pairs(game:GetService("Workspace").placeFolders.items:GetChildren()) do
  48. 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
  49. game:GetService("ReplicatedStorage").modules.network.pickUpItemRequest:InvokeServer(v)
  50. end
  51. end
  52. end
  53. end)()
  54. coroutine.wrap(function()
  55. while wait() do
  56. game.Players.LocalPlayer.Character.hitbox.stamina.Value = game.Players.LocalPlayer.Character.hitbox.maxStamina.Value
  57. end
  58. end)()
  59. while wait(.1) do
  60. attack()
  61. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement