Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plr = owner
- char = plr.Character
- mouse = plr:GetMouse()
- hum = char.Humanoid
- --Smash bros damage--
- --by youngmacka123--
- --damage values--
- dmgpercent = Instance.new("NumberValue") --detecting the damage
- lp = dmgpercent.Value --the value is what decides how far you launch (launch power)
- --setting up values of damage--
- dmgpercent.Parent = char
- dmgpercent.Name = "Damage"
- lp = 0
- --take damage--
- char.Torso.Touched:Connect(function()
- lp = lp + 1
- char.Torso.CFrame = CFrame.new(lp, lp, 0)
- char.Humanoid.Sit = false
- sound = Instance.new("Sound")
- sound.Parent = char.Head
- sound.Playing = true
- sound.SoundId = "rbxassetid://604650009"
- wait(2)
- sound:Destroy()
- end)
- --show damage--
- local sur = Instance.new("BillboardGui", char.Head)
- sur.Name = "Billboard"
- sur.Adornee = char.Head
- sur.Size = UDim2.new(10, 0, 5, 0)
- sur.StudsOffset = Vector3.new(0, 5, 0)
- local text = Instance.new("TextLabel", sur)
- text.Text = lp .."%"
- text.Size = UDim2.new(1, 0, 1, 0)
- text.TextScaled = true
- text.BackgroundTransparency = 1
- text.Font = Enum.Font.SourceSansLight
- text.TextColor3 = Color3.new(1, 1, 1)
- text.TextStrokeTransparency = 0
- --death box--
- death = Instance.new("Part")
- death.Parent = workspace
- death.Anchored = true
- death.CanCollide = false
- death.Transparency = 1
- death.Position = Vector3.new(-70, 70, -86.5)
- death.Size = Vector3.new(650, 1, 793)
- death.Touched:Connect(function()
- explode = Instance.new("Explosion")
- explode.Parent = char
- explode.Position = char.Torso.Position
- explode.Visible = false
- wait(0.12)
- explode:Destroy()
- --dead gui--
- local KO = Instance.new("ScreenGui")
- local KilledText = Instance.new("TextLabel")
- KO.Name = "KO"
- KO.Parent = plr.PlayerGui
- KO.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- KilledText.Name = "KilledText"
- KilledText.Parent = KO
- KilledText.BackgroundColor3 = Color3.new(0, 0, 0)
- KilledText.BackgroundTransparency = 0.30000001192093
- KilledText.BorderColor3 = Color3.new(1, 1, 1)
- KilledText.BorderSizePixel = 3
- KilledText.Position = UDim2.new(0, 0, 0.785984874, 0)
- KilledText.Size = UDim2.new(0, 1365, 0, 153)
- KilledText.Font = Enum.Font.Fantasy
- KilledText.TextColor3 = Color3.new(1, 0, 0)
- KilledText.TextScaled = true
- KilledText.TextSize = 14
- KilledText.TextStrokeTransparency = 0
- KilledText.TextWrapped = true
- KilledText.Text = "K.O!"
- wait(5)
- KO:Destroy()
- end)
- --damage changed--
- while true do
- text.Text = lp
- wait(0.12)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement