Advertisement
kik767868767

Untitled

Nov 22nd, 2019
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.98 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. local roboplr = game.Players:GetPlayerFromCharacter(robo.Parent)
  7. local mouse = roboplr:GetMouse()
  8. robo.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  9. print("Doing health, speed and jumps...")
  10. robo.MaxHealth = math.huge
  11. robo.Health = math.huge
  12. robo.WalkSpeed = 64
  13. robo.JumpPower = 100
  14. print('Finished health. Doing death stuff and name things.')
  15. local name = Instance.new("BillboardGui", robo.Parent.Head)
  16. name.Name = 'NameDisplayer'
  17. name.Adornee = robo.Parent.Head
  18. name.Size = UDim2.new(6,0,1,0)
  19. name.SizeOffset = Vector2.new(0,2)
  20. name.ExtentsOffset = Vector3.new(0,5,0)
  21. local nametxt = Instance.new("TextLabel", robo.Parent.Head.NameDisplayer)
  22. nametxt.Text = "Rob | Delete on contact!"
  23. nametxt.Font = Enum.Font.SourceSansLight
  24. nametxt.TextSize = 20
  25. nametxt.TextScaled = true
  26. nametxt.Size = UDim2.new(1,0,1,0)
  27. nametxt.BackgroundTransparency = 1
  28. nametxt.TextColor3 = Color3.fromRGB(255,255,0)
  29.  
  30. print("Adding some effects...")
  31. local beam = Instance.new("Trail", robo.Parent.HumanoidRootPart)
  32. beam.Parent = robo.Parent.HumanoidRootPart
  33. beam.Attachment0 = robo.Parent.RightUpperArm.RightShoulderAttachment
  34. beam.Attachment1 = robo.Parent.LeftUpperArm.LeftShoulderAttachment
  35. beam.Lifetime = 1
  36. beam.Color = ColorSequence.new(Color3.fromRGB(255,255,0), Color3.fromRGB(255,0,0))
  37. beam.Transparency = NumberSequence.new(.5,1)
  38.  
  39. local children = robo.Parent:GetChildren()
  40. for i, child in ipairs(children) do
  41. if child.ClassName == "MeshPart" or child.ClassName == "BasePart" then
  42. child.Material = Enum.Material.ForceField
  43. child.Color = Color3.fromRGB(255,255,0)
  44. elseif child.Name == "Head" then
  45. child.Material = Enum.Material.ForceField
  46. child.Color = Color3.fromRGB(255,255,0)
  47. elseif child.ClassName == "Accessory" then
  48. child.Handle.Material = Enum.Material.ForceField
  49. child.Handle.Color = Color3.fromRGB(255,255,0)
  50. end
  51.  
  52. end
  53.  
  54.  
  55. print("And doing some delete stuff.")
  56. robo.Parent.HumanoidRootPart.Touched:Connect(function(p)
  57. if p.Name == "Base" then
  58. return nil
  59. end
  60. p.Parent = workspace
  61. p.Anchored = false
  62. wait(3)
  63. p:remove()
  64.  
  65. end)
  66.  
  67. mouse.KeyDown:connect(function(key)
  68. if key == "t" then
  69. print("Teleporting!")
  70. robo.Parent.HumanoidRootPart.CFrame = Hit
  71. end
  72. end)
  73.  
  74. robo.Parent.Head.Touched:Connect(function(p)
  75. if p.Name == "Base" then
  76. return nil
  77. end
  78. p.Parent = workspace
  79. p.Anchored = false
  80. wait(5)
  81. p:remove()
  82. end)
  83. end
  84. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement