Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- By Robolxtm --
- print('Starting RoboDeathScript v1.1...')
- if workspace:FindFirstChild("Lexxiles") ~= nil then
- if workspace.Lexxiles:FindFirstChild("Humanoid") ~= nil then
- local robo = workspace.Robolxtm.Humanoid
- robo.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
- print("Doing health, speed and jumps...")
- robo.MaxHealth = math.huge
- robo.Health = math.huge
- robo.WalkSpeed = 32
- robo.JumpPower = 100
- print('Finished health. Doing death stuff and name things.')
- local name = Instance.new("BillboardGui", robo.Parent.Head)
- name.Name = 'a'
- name.Adornee = robo.Parent.Head
- name.Size = UDim2.new(6,0,1,0)
- name.SizeOffset = Vector2.new(0,2)
- name.ExtentsOffset = Vector3.new(0,5,0)
- local nametxt = Instance.new("TextLabel", robo.Parent.Head.a)
- nametxt.Text = "Robo - Can't touch this"
- nametxt.Text = 3
- nametxt.TextScaled = true
- nametxt.Size = UDim2.new(1,0,1,0)
- nametxt.BackgroundTransparency = 1
- nametxt.TextColor3 = Color3.fromRGB(0,0,150)
- local beam = Instance.new("Trail")
- beam.Parent = robo.Parent.Torso
- beam.Attachment0 = robo.Parent["Right Arm"].RightShoulderAttachment
- beam.Attachment1 = robo.Parent["Left Arm"].LeftShoulderAttachment
- beam.Lifetime = .5
- beam.Transparency = NumberSequence.new(.5,1)
- print('Collision stuff...')
- local children = robo.Parent:GetChildren()
- for i, child in ipairs(children) do
- if child.ClassName == "Part" then
- child.CanCollide = false
- end
- end
- game:GetService("SoundService").AmbientReverb = Enum.ReverbType.Cave
- local l = Instance.new("Sound")
- l.Parent = a
- l.Looped = true
- l.SoundId = "rbxassetid://258852901"
- l.Volume = 4
- l:Play()
- print('Death part!')
- robo.Parent.Torso.Touched:Connect(function(p)
- if p.Parent.Name ~= "Workspace" then
- p:remove()
- end
- end)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement