Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- By Robolxtm --
- print('Starting RoboDeathScript v1 Update 2...')
- if workspace:FindFirstChild("Robolxtm") ~= nil then
- if workspace.Robolxtm: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 = 64
- robo.JumpPower = 100
- print('Finished health. Doing death stuff and name things.')
- local name = Instance.new("BillboardGui", robo.Parent.Head)
- name.Name = 'NameDisplayer'
- 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.NameDisplayer)
- nametxt.Text = "Robo | Delete on contact! "
- nametxt.Font = Enum.Font.SourceSansLight
- nametxt.TextSize = 20
- nametxt.TextScaled = true
- nametxt.Size = UDim2.new(1,0,1,0)
- nametxt.BackgroundTransparency = 1
- nametxt.TextColor3 = Color3.fromRGB(255,255,0)
- local beam = Instance.new("Trail", robo.Parent.HumanoidRootPart)
- beam.Parent = robo.Parent.HumanoidRootPart
- beam.Attachment0 = robo.Parent.RightUpperArm.RightShoulderAttachment
- beam.Attachment1 = robo.Parent.LeftUpperArm.LeftShoulderAttachment
- beam.Lifetime = 1
- beam.Color = ColorSequence.new(Color3.fromRGB(255,255,0), Color3.fromRGB(255,0,0))
- beam.Transparency = NumberSequence.new(.5,1)
- local exdeletepart = Instance.new('Part', robo.Parent)
- local weldex = Instance.new('WeldConstraint', exdeletepart)
- weldex.Part0 = robo.Parent.HumanoidRootPart
- weldex.Part1 = exdeletepart
- local offset = Vector3.new(0,0,5)
- exdeletepart.CFrame = robo.Parent.HumanoidRootPart.CFrame*CFrame.new(offset)
- exdeletepart.Color = Color3.fromRGB(255,255,0)
- robo.Parent.HumanoidRootPart.Touched:Connect(function(p)
- p.Parent = workspace
- p.Anchored = false
- if p:FindFirstChildWhichIsA("Weld") ~= nil then
- p:FindFirstChildWhichIsA("Weld"):remove()
- elseif p:FindFirstChildWhichIsA("WeldConstraint") ~= nil then
- p:FindFirstChildWhichIsA("WeldConstraint"):remove()
- end
- wait(3)
- p:remove()
- end)
- exdeletepart.Touched:Connect(function(p)
- p.Parent = workspace
- p.Anchored = false
- if p:FindFirstChildWhichIsA("Weld") ~= nil then
- p:FindFirstChildWhichIsA("Weld"):remove()
- elseif p:FindFirstChildWhichIsA("WeldConstraint") ~= nil then
- p:FindFirstChildWhichIsA("WeldConstraint"):remove()
- end
- wait(3)
- p:remove()
- end)
- robo.Parent.Head.Touched:Connect(function(p)
- p.Parent = workspace
- p.Anchored = false
- if p:FindFirstChildWhichIsA("Weld") ~= nil then
- p:FindFirstChildWhichIsA("Weld"):remove()
- elseif p:FindFirstChildWhichIsA("WeldConstraint") ~= nil then
- p:FindFirstChildWhichIsA("WeldConstraint"):remove()
- end
- wait(5)
- p:remove()
- end)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement