Advertisement
kik767868767

Untitled

Aug 10th, 2019
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.99 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.Torso
  29.         beam.Attachment0 = robo.Parent["Right Arm"].RightShoulderAttachment
  30.         beam.Attachment1 = robo.Parent["Left Arm"].LeftShoulderAttachment
  31.         print('Collision stuff...')
  32.         local children = robo.Parent:GetChildren()
  33.             for i, child in ipairs(children) do
  34.             if child.ClassName == "Part" then
  35.                 child.CanCollide = false
  36.             end
  37.         end
  38.  
  39.         local a = Instance.new("SoundGroup")
  40.         a.Parent = robo.Parent.Torso
  41.  
  42.         Instance.new("ReverbSoundEffect", a)
  43.  
  44.         local l = Instance.new("Sound")
  45.         l.Parent = a
  46.         l.Looped = true
  47.         l.SoundId = "rbxassetid://258852901"
  48.        
  49.        
  50.          
  51.  
  52.  
  53.         print('Death part!')
  54.         robo.Parent.Torso.Touched:Connect(function(p)
  55.                 if p.Parent.Name ~= "Workspace" then
  56.                     p:remove()
  57.                 end
  58.         end)
  59.     end
  60. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement