Advertisement
kik767868767

Untitled

Aug 3rd, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. -- By Robolxtm --
  2. print('Starting RoboDeathScript v1.1...')
  3. if workspace:FindFirstChild("Robolxtm") ~= nil then
  4. if workspace.Robolxtm:FindFirstChild("Humanoid") ~= nil then
  5. local robo = workspace.Robolxtm.Humanoid
  6. robo.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  7. print("Doing health, speed and jumps...")
  8. robo.MaxHealth = math.huge
  9. robo.Health = math.huge
  10. robo.WalkSpeed = 32
  11. robo.JumpPower = 100
  12. print('Finished health. Doing death stuff and name things.')
  13. local name = Instance.new("BillboardGui", robo.Parent.Head)
  14. name.Name = 'a'
  15. name.Adornee = robo.Parent.Head
  16. name.Size = UDim2.new(6,0,1,0)
  17. name.SizeOffset = Vector2.new(0,2)
  18. name.ExtentsOffset = Vector3.new(0,5,0)
  19. local nametxt = Instance.new("TextLabel", robo.Parent.Head.a)
  20. nametxt.Text = "Robo - Can't touch this"
  21. nametxt.Text = 3
  22. nametxt.TextScaled = true
  23. nametxt.Size = UDim2.new(1,0,1,0)
  24. nametxt.BackgroundTransparency = 1
  25. nametxt.TextColor3 = Color3.fromRGB(0,0,150)
  26.  
  27. local beam = Instance.new("Trail")
  28. beam.Parent = robo.Parent.Torso
  29. beam.Attachment0 = robo.Parent["Right Arm"].RightShoulderAttachment
  30. beam.Attachment1 = robo.Parent["Left Arm"].LeftShoulderAttachment
  31. print('Collision stuff...')
  32. local children = robo.Parent
  33. for i = 1, #children do
  34. local child = children[i]
  35. if child.ClassName == "Part" then
  36. child.CanCollide = false
  37. end
  38. end
  39.  
  40.  
  41.  
  42. print('Death part!')
  43. robo.Parent.Torso.Touched:Connect(function(p)
  44. if p.Parent:FindFirstChild("Humanoid") ~= nil then
  45. local returned, data = pcall(function()
  46. wait(1)
  47. p.Parent.Humanoid.Health = 0
  48. wait(2.5)
  49. p.Parent.Humanoid:Destroy()
  50. end)
  51. elseif p.Parent.ClassName == "Model" then
  52. local returned, data = pcall(function()
  53. p.Parent:BreakJoints()
  54. p:Destroy()
  55. end)
  56. elseif p.Parent.ClassName ~= "Model" and p.Locked == false then
  57. local returned, data = pcall(function()
  58. p:Destroy()
  59. end)
  60. end
  61. end)
  62. end
  63. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement