Advertisement
kik767868767

Untitled

Nov 21st, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. -- By Robolxtm --
  2. print('Starting RoboDeathScript v1...')
  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 = '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 | Delete on contact! "
  21. nametxt.Font = Enum.Font.SourceSansLight
  22. nametxt.Text = 3
  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 = .5
  33. beam.Transparency = NumberSequence.new(.5,1)
  34.  
  35.  
  36. robo.Parent.HumanoidRootPart.Touched:Connect(function(p)
  37. p.Parent = workspace
  38. p.Anchored = false
  39. if p:FindFirstChildWhichIsA("Weld") ~= nil then
  40. p:FindFirstChildWhichIsA("Weld"):remove()
  41. elseif p:FindFirstChildWhichIsA("WeldConstraint") ~= nil then
  42. p:FindFirstChildWhichIsA("WeldConstraint"):remove()
  43. end
  44.  
  45. if p.Parent.ClassName == "Model" then
  46. p.Parent:BreakJoints()
  47. end
  48. wait(3)
  49. p:remove()
  50. end)
  51.  
  52. robo.Parent.Head.Touched:Connect(function(p)
  53. p.Parent = workspace
  54. p.Anchored = false
  55. if p:FindFirstChildWhichIsA("Weld") ~= nil then
  56. p:FindFirstChildWhichIsA("Weld"):remove()
  57. elseif p:FindFirstChildWhichIsA("WeldConstraint") ~= nil then
  58. p:FindFirstChildWhichIsA("WeldConstraint"):remove()
  59. end
  60.  
  61. if p.Parent.ClassName == "Model" then
  62. p.Parent:BreakJoints()
  63. end
  64. wait(5)
  65. p:remove()
  66. end)
  67. end
  68. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement