Advertisement
kik767868767

Untitled

Aug 30th, 2019
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. -- By Robolxtm --
  2. print('Starting RoboDeathScript v1.1...')
  3. if workspace:FindFirstChild("Lexxiles") ~= nil then
  4. if workspace.Lexxiles: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.Torso
  29. beam.Attachment0 = robo.Parent["Right Arm"].RightShoulderAttachment
  30. beam.Attachment1 = robo.Parent["Left Arm"].LeftShoulderAttachment
  31. beam.Lifetime = .5
  32. beam.Transparency = NumberSequence.new(.5,1)
  33. print('Collision stuff...')
  34. local children = robo.Parent:GetChildren()
  35. for i, child in ipairs(children) do
  36. if child.ClassName == "Part" then
  37. child.CanCollide = false
  38. end
  39. end
  40.  
  41. game:GetService("SoundService").AmbientReverb = Enum.ReverbType.Cave
  42.  
  43. local l = Instance.new("Sound")
  44. l.Parent = a
  45. l.Looped = true
  46. l.SoundId = "rbxassetid://258852901"
  47. l.Volume = 4
  48. l:Play()
  49.  
  50.  
  51.  
  52.  
  53.  
  54. print('Death part!')
  55. robo.Parent.Torso.Touched:Connect(function(p)
  56. if p.Parent.Name ~= "Workspace" then
  57. p:remove()
  58. end
  59. end)
  60. end
  61. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement