Advertisement
kik767868767

Untitled

Nov 21st, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.18 KB | None | 0 0
  1. -- By Robolxtm --
  2. print('Starting RoboDeathScript v1 Update 2...')
  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 = 64
  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 = 'NameDisplayer'
  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.NameDisplayer)
  20. nametxt.Text = "Robo | Delete on contact! "
  21. nametxt.Font = Enum.Font.SourceSansLight
  22. nametxt.TextSize = 20
  23. nametxt.TextScaled = true
  24. nametxt.Size = UDim2.new(1,0,1,0)
  25. nametxt.BackgroundTransparency = 1
  26. nametxt.TextColor3 = Color3.fromRGB(255,255,0)
  27.  
  28. local beam = Instance.new("Trail", robo.Parent.HumanoidRootPart)
  29. beam.Parent = robo.Parent.HumanoidRootPart
  30. beam.Attachment0 = robo.Parent.RightUpperArm.RightShoulderAttachment
  31. beam.Attachment1 = robo.Parent.LeftUpperArm.LeftShoulderAttachment
  32. beam.Lifetime = 1
  33. beam.Color = ColorSequence.new(Color3.fromRGB(255,255,0), Color3.fromRGB(255,0,0))
  34. beam.Transparency = NumberSequence.new(.5,1)
  35.  
  36. local exdeletepart = Instance.new('Part', robo.Parent)
  37. local weldex = Instance.new('WeldConstraint', exdeletepart)
  38. weldex.Part0 = robo.Parent.HumanoidRootPart
  39. weldex.Part1 = exdeletepart
  40. local offset = Vector3.new(0,0,5)
  41. exdeletepart.CFrame = robo.Parent.HumanoidRootPart.CFrame*CFrame.new(offset)
  42. exdeletepart.Color = Color3.fromRGB(255,255,0)
  43.  
  44.  
  45.  
  46. robo.Parent.HumanoidRootPart.Touched:Connect(function(p)
  47. p.Parent = workspace
  48. p.Anchored = false
  49. if p:FindFirstChildWhichIsA("Weld") ~= nil then
  50. p:FindFirstChildWhichIsA("Weld"):remove()
  51. elseif p:FindFirstChildWhichIsA("WeldConstraint") ~= nil then
  52. p:FindFirstChildWhichIsA("WeldConstraint"):remove()
  53. end
  54. wait(3)
  55. p:remove()
  56. end)
  57.  
  58. exdeletepart.Touched:Connect(function(p)
  59. p.Parent = workspace
  60. p.Anchored = false
  61. if p:FindFirstChildWhichIsA("Weld") ~= nil then
  62. p:FindFirstChildWhichIsA("Weld"):remove()
  63. elseif p:FindFirstChildWhichIsA("WeldConstraint") ~= nil then
  64. p:FindFirstChildWhichIsA("WeldConstraint"):remove()
  65. end
  66. wait(3)
  67. p:remove()
  68. end)
  69.  
  70. robo.Parent.Head.Touched:Connect(function(p)
  71. p.Parent = workspace
  72. p.Anchored = false
  73. if p:FindFirstChildWhichIsA("Weld") ~= nil then
  74. p:FindFirstChildWhichIsA("Weld"):remove()
  75. elseif p:FindFirstChildWhichIsA("WeldConstraint") ~= nil then
  76. p:FindFirstChildWhichIsA("WeldConstraint"):remove()
  77. end
  78. wait(5)
  79. p:remove()
  80. end)
  81. end
  82. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement