Advertisement
kik767868767

Untitled

Nov 22nd, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 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 children = robo.Parent:GetChildren()
  37. for i, child in ipairs(children) do
  38. if child.ClassName == "MeshPart" or child.ClassName == "BasePart" then
  39. child.Material = Enum.Material.ForceField
  40. child.Color = Color3.fromRGB(255,255,0)
  41. elseif child.Name == "Head" then
  42. child.Material = Enum.Material.ForceField
  43. child.Color = Color3.fromRGB(255,255,0)
  44. elseif child.ClassName == "Accessory" then
  45. child.Handle.Material = Enum.Material.ForceField
  46. child.Handle.Color = Color3.fromRGB(255,255,0)
  47. end
  48.  
  49. end
  50.  
  51.  
  52. robo.Parent.HumanoidRootPart.Touched:Connect(function(p)
  53. if p.Name == "Base" then
  54. return nil
  55. end
  56. p.Parent = workspace
  57. p.Anchored = false
  58. wait(3)
  59. p:remove()
  60.  
  61. end)
  62.  
  63. robo.Parent.Head.Touched:Connect(function(p)
  64. if p.Name == "Base" then
  65. return nil
  66. end
  67. p.Parent = workspace
  68. p.Anchored = false
  69. wait(5)
  70. p:remove()
  71. end)
  72. end
  73. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement