TheUnknownDiscord

computer has virus

Sep 10th, 2021 (edited)
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. Tool = Instance.new("Tool")
  2. Part = Instance.new("Part")
  3. Part.Name = "Handle"
  4. Part.Parent = Tool
  5. Tool.Parent = owner.Character
  6. Part.Transparency = 1
  7. Part.Size = Vector3.new(3,3,3)
  8. local virus = Instance.new("Sound", owner.character.Head)
  9. virus.SoundId = "rbxassetid://6410047369"
  10. virus.Volume = 1
  11. local A = Instance.new("Sound", owner.character.Head)
  12. A.SoundId = "rbxassetid://7323113985"
  13. A.Volume = 10
  14. gotsomeone = false
  15. function damage(dmg)
  16. for i,v in pairs(workspace:GetDescendants()) do
  17. if v.ClassName == "Model" and v ~= character then
  18. local headdude = v:findFirstChild("Head")
  19. if headdude then
  20. if (headdude.Position - Part.Position).magnitude < 3.25 then
  21. if headdude.Parent ~= nil then
  22. local humm = v:findFirstChildOfClass("Humanoid")
  23. if humm then
  24. if humm.Parent ~= owner.Character then
  25. virus:Play()
  26. if humm.Health > 0 then
  27. gotsomeone = true
  28. wait(1.75)
  29. A:Play()
  30. humm.BreakJointsOnDeath = false
  31. wait(0.125)
  32. headdude:Destroy()
  33. gotsomeone = false
  34. end
  35. end
  36. end
  37. end
  38. end
  39. end
  40. end
  41. end
  42. end
  43. Tool.Activated:Connect(damage)
  44.  
  45. while true do
  46. task.wait()
  47. if gotsomeone then
  48. for i,v in pairs(workspace:GetDescendants()) do
  49. if v.ClassName == "Model" and v ~= character then
  50. local headdude = v:findFirstChild("Head")
  51. if headdude then
  52. if (headdude.Position - Part.Position).magnitude < 3.25 then
  53. if headdude.Parent ~= nil then
  54. local humm = v:findFirstChildOfClass("Humanoid")
  55. if humm then
  56. if humm.Parent ~= owner.Character then
  57. owner.Character.HumanoidRootPart.CFrame = CFrame.new(owner.Character.HumanoidRootPart.Position, Vector3.new(headdude.Position.x,owner.Character.HumanoidRootPart.Position.y,headdude.Position.z))
  58. end
  59. end
  60. end
  61. end
  62. end
  63. end
  64. end
  65. end
  66. end
Add Comment
Please, Sign In to add comment