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

I get the error ATTEMPT TO CALL NIL VALUE when trying to hand out my badge when you win?

Asked by 2 years ago

Here is the script for the jackpot

01machine.SuperJPSensor.Touched:Connect(function(hit) -- Registers the ball reaching the Mega Jackpot hole
02    if hit.Name == "Neptune_Ball" then
03        sounds.MonsterJackpot2.Volume = 1
04        muteMusic()
05        button.Material = Enum.Material.SmoothPlastic
06        wait(5)
07        AwardBadge(game.Players:FindFirstChild(machine.CardReader.GameInfo.Player.Value), 2126797826)
08        machine.Particle.ParticleEmitter.Enabled = true
09        sounds.MonsterJackpot2:Play()
10        wait(2)
11        sounds.MonsterDropMonsterJackpotSong:Play()
12        ticketOut(machine.Parent.MegaJackpotScreen.Value.Value)
13        for i, v in pairs(game.Players:GetChildren()) do
14            -- Change the player's stuff here
15            v.PlayerGui.ScreenGui.Frame.TextLabel.Text = machine.CardReader.GameInfo.Player.Value .. " HAS WON " .. machine.Parent.MegaJackpotScreen.Value.Value .. " ON MONSTER DROP (1)"
View all 37 lines...

1 answer

Log in to vote
0
Answered by
enes223 327 Moderation Voter
2 years ago

hey you! have you ever heard of enes? if you are in trouble, better call enes!

Ad

Answer this question