Advertisement
kik767868767

Untitled

Sep 14th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 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.HumanoidRootPart
  29. beam.Attachment0 = robo.Parent.RightUpperArm.RightShoulderAttachment
  30. beam.Attachment1 = robo.Parent.LeftUpperArm.LeftShoulderAttachment
  31. beam.Lifetime = .5
  32. beam.Color3 = Color3.fromRGB(0,0,255)
  33. beam.Transparency = NumberSequence.new(.5,1)
  34. print('Collision stuff...')
  35. local children = robo.Parent:GetChildren()
  36. for i, child in ipairs(children) do
  37. if child.ClassName == "Part" then
  38. child.CanCollide = false
  39. end
  40. end
  41.  
  42. game:GetService("SoundService").AmbientReverb = Enum.ReverbType.Cave
  43.  
  44. local l = Instance.new("Sound")
  45. l.Parent = a
  46. l.Playing = true
  47. l.Looped = true
  48. l.SoundId = "rbxassetid://258852901"
  49. l.Volume = 10
  50. l:Play()
  51.  
  52.  
  53.  
  54.  
  55.  
  56. print('Death part!')
  57. robo.Parent.HumanoidRootPart.Touched:Connect(function(p)
  58. if p.Parent.Name ~= "Workspace" then
  59. p:remove()
  60. end
  61. end)
  62. end
  63. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement