Welcome to the Forums!
Join thousands of other Roblox members with a free account.
Create Forum Account

i get warning: infinite yield possible on a playful new start

  • This website was created by Roblox members to replace the official forums (because Roblox shut them down) Join us if you like Roblox!

jeremqpmfpi

New Member
Reputation: 0 / 0 / 0
Nov 9, 2021
6
0
1
Roblox
jeremqpmfpi
hi, I am making an achievement screen, but I have a problem.

the issue is that when I change 'chapter 1' boolean value or 'a playful new start', nothing happens!

I can tell by that I don't get "test" in output.

the local script is in startercharaterscripts.

the chapter 1 boolean value is in chapter 1 folder, same with 'a playful new start' boolean value.

error is on line 4

local script:
badge script:
---shortcuts
local chapter_1_folder = game.Workspace:WaitForChild("chapter 1")
local chapter_1_boolean = chapter_1_folder:WaitForChild("chapter 1")
local a_playful_new_start_boolean = chapter_1_boolean:WaitForChild("a playful new start")
local triggers = {
    chapter_1_boolean,
    a_playful_new_start_boolean
}

---chapter 1 badge (and chapter 1 stories)
function chapter1()
    print("test")
end

chapter_1_boolean.Changed:Connect(chapter1)
a_playful_new_start_boolean.Changed:Connect(chapter1)
Post automatically merged:

update: i fixed the warning problem, i just missspelled playful
but the value is not detecting change
 
Last edited: