tomoneko

sword

Mar 8th, 2024
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. --[[
  2. WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
  3. ]]
  4. --// Setting \\--
  5. local range = 15
  6.  
  7. --// Variable \\--
  8. local player = game:GetService("Players").LocalPlayer
  9.  
  10. --// Script \\--
  11. game:GetService("RunService").RenderStepped:Connect(function()
  12. local p = game.Players:GetPlayers()
  13. for i = 2, #p do local v = p[i].Character
  14. if v and v:FindFirstChild("Humanoid") and v.Humanoid.Health > 0 and v:FindFirstChild("HumanoidRootPart") and player:DistanceFromCharacter(v.HumanoidRootPart.Position) <= range then
  15. local tool = player.Character and player.Character:FindFirstChildOfClass("Tool")
  16. if tool and tool:FindFirstChild("Handle") then
  17. tool:Activate()
  18. for i,v in next, v:GetChildren() do
  19. if v:IsA("BasePart") then
  20. firetouchinterest(tool.Handle,v,0)
  21. firetouchinterest(tool.Handle,v,1)
  22. end
  23. end
  24. end
  25. end
  26. end
  27. end)
Advertisement
Add Comment
Please, Sign In to add comment