Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local menu = script.Parent:WaitForChild("Menu")
- local healthEnergy = menu:WaitForChild("HealthEnergy")
- local energy = healthEnergy:WaitForChild("Energy")
- local health = healthEnergy:WaitForChild("Health")
- local slideFrame = menu:WaitForChild("SlideInFrame")
- local statsFrame = slideFrame:WaitForChild("Stats")
- local events = game:GetService("ReplicatedStorage"):WaitForChild("Events")
- local saveEvent = events:WaitForChild("Saved")
- local shuttingDown = events:WaitForChild("ShuttingDown")
- local saveButton = menu:WaitForChild("Save")
- local input = script.Parent.Parent:WaitForChild("InputHandler")
- local service = game:GetService("UserInputService")
- local transformed = script.Parent:WaitForChild("Transformed")
- local kaio = input:WaitForChild("Kaioken")
- local ssj1 = input:WaitForChild("SuperSaiyan")
- local ssj2 = input:WaitForChild("SuperSaiyan2")
- local lssj = input:WaitForChild("LegendSaiyan")
- local ssj3 = input:WaitForChild("SuperSaiyan3")
- local myst = input:WaitForChild("Mystic")
- local ssj4 = input:WaitForChild("SuperSaiyan4")
- local ssjg = input:WaitForChild("SuperSaiyanG")
- local ssjb = input:WaitForChild("SuperSaiyanB")
- local godf = input:WaitForChild("FriezaGod")
- local ssjw = input:WaitForChild("SuperSaiyanWhite")
- local ssjp = input:WaitForChild("SuperSaiyanPink")
- local supr = input:WaitForChild("Supreme")
- local udss = input:WaitForChild("Undead")
- local anss = input:WaitForChild("Angel")
- local lssg = input:WaitForChild("LSSJG")
- local omeg = input:WaitForChild("Omega")
- local ssj5 = input:WaitForChild("SSJ5")
- local ssb3 = input:WaitForChild("SuperSaiyanB3")
- local musics = {
- {
- 194135434,
- "Vegeta's Rage"
- },
- {316770138, "Buu Theme"},
- {253181651, "Destiny"},
- {253913148, "Braveheart"},
- {
- 156056027,
- "Gohan Vs Frieza"
- },
- {
- 253002550,
- "A Moment for Shuddering"
- },
- {
- 253920031,
- "A Mighty Foe"
- },
- {185436863, "Wild Soul"},
- {
- 156017783,
- "Piccolo vs Andriod 17"
- },
- {
- 171199543,
- "Power of a God"
- },
- {
- 581552293,
- "Head Cha-la remix"
- }
- }
- local sound = Instance.new("Sound", script)
- sound.Volume = 0.75
- sound.Looped = true
- local musicId = musics[math.random(1, #musics)]
- sound.SoundId = "rbxassetid://" .. musicId[1]
- sound:Play()
- local music = slideFrame:WaitForChild("Music")
- music:WaitForChild("Toggle").MouseButton1Click:connect(function()
- if sound.Volume == 0 then
- sound.Volume = 0.75
- else
- sound.Volume = 0
- end
- end)
- local musicScrolling = music:WaitForChild("ScrollingFrame")
- for i, v in pairs(musics) do
- do
- local button = musicScrolling:WaitForChild("Example"):Clone()
- button.Name = "Button" .. i
- button.Text = v[2]
- button.Parent = musicScrolling
- button.Visible = true
- button.Position = UDim2.new(0, 0, 0, 30 * (i - 1))
- musicScrolling.CanvasSize = UDim2.new(0, 0, 0, 30 * #musics)
- button.MouseButton1Click:connect(function()
- sound.Looped = false
- wait()
- sound:Stop()
- sound.SoundId = "rbxassetid://" .. v[1]
- sound.Looped = true
- sound:Play()
- end)
- end
- end
- local player = game.Players.LocalPlayer
- repeat
- wait()
- until player.Character
- local character = player.Character
- local humanoid = character:WaitForChild("Humanoid")
- local stats = player:WaitForChild("Data")
- player.PlayerGui:SetTopbarTransparency(0)
- local ki, maxKi = script.Parent:WaitForChild("Ki"), script.Parent:WaitForChild("MaxKi")
- local function updateKi()
- energy.Max.Value = maxKi.Value
- energy.Current.Value = ki.Value
- end
- ki.Changed:connect(updateKi)
- maxKi.Changed:connect(updateKi)
- updateKi()
- humanoid.HealthChanged:connect(function()
- health.Max.Value = humanoid.MaxHealth
- health.Current.Value = humanoid.Health
- end)
- local function updateStats(v)
- if statsFrame:FindFirstChild(v.Name) then
- stats.Power.Value = stats.Attack.Value / 1000
- stats.Energy.Value = stats.Ki.Value / 1000
- stats.Defense.Value = math.floor((stats.Attack.Value + stats.Agility.Value) / 2)
- for _, v in pairs(stats:GetChildren()) do
- if v.Value < 0 then
- v.Value = 0
- end
- end
- humanoid.MaxHealth = stats.Defense.Value / 5000 + 100
- if kaio.Value then
- humanoid.MaxHealth = stats.Defense.Value / 5000 + 140
- end
- if ssj1.Value then
- humanoid.MaxHealth = stats.Defense.Value / 5000 + 180
- end
- if ssj2.Value then
- humanoid.MaxHealth = stats.Defense.Value / 5000 + 220
- end
- if lssj.Value then
- humanoid.MaxHealth = stats.Defense.Value / 5000 + 260
- end
- if ssj3.Value then
- humanoid.MaxHealth = stats.Defense.Value / 5000 + 300
- end
- if myst.Value then
- humanoid.MaxHealth = stats.Defense.Value / 5000 + 340
- end
- if ssj4.Value then
- humanoid.MaxHealth = stats.Defense.Value / 5000 + 380
- end
- if ssjg.Value then
- humanoid.MaxHealth = stats.Defense.Value / 5000 + 420
- end
- if ssjb.Value then
- humanoid.MaxHealth = stats.Defense.Value / 5000 + 460
- end
- if godf.Value then
- humanoid.MaxHealth = stats.Defense.Value / 5000 + 500
- end
- if ssjw.Value then
- humanoid.MaxHealth = stats.Defense.Value / 5000 + 540
- end
- if ssjp.Value then
- humanoid.MaxHealth = stats.Defense.Value / 5000 + 580
- end
- if ssj5.Value then
- humanoid.MaxHealth = stats.Defense.Value / 5000 + 400
- end
- if omeg.Value then
- humanoid.MaxHealth = stats.Defense.Value / 5000 + 290
- end
- if lssg.Value then
- humanoid.MaxHealth = stats.Defense.Value / 5000 + 480
- end
- if udss.Value then
- humanoid.MaxHealth = stats.Defense.Value / 5000 + 360
- end
- if anss.Value then
- humanoid.MaxHealth = stats.Defense.Value / 5000 + 600
- end
- if ssb3.Value then
- humanoid.MaxHealth = stats.Defense.Value / 5000 + 1300
- end
- maxKi.Value = math.floor(stats.Ki.Value / 10000) + 100
- if anss.Value then
- maxKi.Value = maxKi.Value * 1.5
- elseif ssb3.Value then
- maxKi.Value = maxKi.Value * 2
- end
- stats.PowerLevel.Value = math.floor(stats.Attack.Value / 3 + stats.Agility.Value / 3 + stats.Ki.Value / 3)
- statsFrame[v.Name].Text = v.Name .. ": " .. v.Value
- statsFrame.Defense.Text = "Defense: " .. math.floor((stats.Attack.Value + stats.Agility.Value) / 2)
- end
- end
- updateStats(stats:WaitForChild("Attack"))
- humanoid.Health = humanoid.MaxHealth
- for _, v in pairs(stats:GetChildren()) do
- v.Changed:connect(function()
- updateStats(v)
- end)
- updateStats(v)
- end
- anss.Changed:connect(function()
- if anss.Value == false then
- ki.Value = math.floor(stats.Ki.Value / 10000) + 100
- end
- end)
- ssb3.Changed:connect(function()
- if ssb3.Value == false then
- ki.Value = math.floor(stats.Ki.Value / 10000) + 100
- end
- end)
- transformed.Event:connect(function()
- updateStats(stats.Ki)
- print(2)
- health.Max.Value = humanoid.MaxHealth
- health.Current.Value = humanoid.Health
- end)
- local saved = false
- saveButton.MouseButton1Click:connect(function()
- if saved then
- return
- end
- saved = true
- saveEvent:FireServer()
- saveButton.Text = ""
- for i = 60, 1, -1 do
- saveButton.Text = i .. " "
- wait(1)
- end
- saveButton.Text = "Save "
- saved = true
- end)
- saveEvent.OnClientEvent:connect(function()
- saveButton.Saved.Value = true
- end)
- if shuttingDown.Value == true then
- script.Parent.Alert.Visible = true
- else
- script.Parent.Alert.Visible = false
- end
- shuttingDown.Changed:connect(function()
- if shuttingDown.Value == true then
- script.Parent.Alert.Visible = true
- else
- script.Parent.Alert.Visible = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement