Advertisement
BloxFruitScripter

Unit x script Shared By PrinceScript

Mar 18th, 2025
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. First script=
  2.  
  3. -- Unit X
  4. loadstring(game:HttpGet("https://shorturl.at/f5xHw"))()
  5.  
  6. Second script=
  7.  
  8. -- Fix Attack
  9. local module = {
  10. NextAttack = 0,
  11. Distance = 55,
  12. attackMobs = true,
  13. attackPlayers = true
  14. }
  15. local Player = game:GetService("Players")
  16. function module:GetBladeHits()
  17. local BladeHits = {}
  18. for _, Enemy in game:GetService("Workspace").Enemies:GetChildren() do
  19. if Enemy:FindFirstChild("HumanoidRootPart") then
  20. table.insert(BladeHits, Enemy.HumanoidRootPart)
  21. end
  22. end
  23. return BladeHits
  24. end
  25. function module:attack()
  26. local BladeHits = self:GetBladeHits()
  27. game:GetService("ReplicatedStorage").Modules.Net:WaitForChild("RE/RegisterAttack"):FireServer(0)
  28. for _, Hit in BladeHits do
  29. game:GetService("ReplicatedStorage").Modules.Net:WaitForChild("RE/RegisterHit"):FireServer(Hit)
  30. end
  31. end
  32. spawn(function()
  33. while wait(0.05) do
  34. module:attack()
  35. end
  36. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement