Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would i make it so it gives you a badge when you win the mega bonus so it will not break?

Asked by 2 years ago

Here is the script i need to put it somewhere where it wont break it and it hands it out

        script.Parent.Motor.HingeConstraint.AngularVelocity = 25
        script.Parent.Parent.Circlewave.Motor.HingeConstraint.AngularVelocity = 0
        muteMusic()
        sounds.MegaJackpot.Volume = 2
        sounds.MegaJackpotActivate:Play()
        ticketOut(tonumber(screen.Overlays.MegaJackpot.Text))
        for i = 1, 200 do
            if i == 9 then sounds.MegaJackpot:Play() end
            screen.Overlays.MegaJackpot.TextColor3 = Color3.new(1,0,1)
            screen.Overlays.MegaJackpotMessage.Visible = true
            for _,a in pairs(SideLights:GetChildren()) do a.SurfaceLight.Enabled = true; a.Material = Enum.Material.Neon end
            wait(0.1)
            screen.Overlays.MegaJackpot.TextColor3 = Color3.new(0,0,0)
            for _,a in pairs(SideLights:GetChildren()) do a.SurfaceLight.Enabled = false; a.Material = Enum.Material.SmoothPlastic end
            screen.Overlays.MegaJackpotMessage.Visible = false
            wait(0.1)
        end
        screen.Overlays.MegaJackpot.Text = MegaJPDefault
        upperScreen.Text = MegaJPDefault
        screen.Overlays.MegaJackpot.TextColor3 = Color3.new(1,0,1)
        for _,a in pairs(SideLights:GetChildren()) do a.SurfaceLight.Enabled = true; a.Material = Enum.Material.Neon end
        for i = 2, 0, -0.2 do
            sounds.MegaJackpot.Volume = i
            wait(0.1)
        end
        sounds.MegaJackpot:Stop()
        script.Parent.Motor.HingeConstraint.AngularVelocity = 1
        script.Parent.Parent.Circlewave.Motor.HingeConstraint.AngularVelocity = 1
    end
    sounds.MusicLoop.Disabled = false
    e:Destroy()
    machine.EventNumber.Value = machine.EventNumber.Value + 1
    machine.EventOn.Value = false
    active = false
    start()
end

Answer this question