#if Boolvalue.Value == true, not working

23 messages · Page 1 of 1 (latest)

frosty bolt
#

It may be that it is trying to find CutsceneScript's value, not a child named Value.

Can I see the error?

desert gulch
#

Be warn, game.StarterGui is the folder cloned in every respawn for every player, and won't do anything for guis already in players. Use player.PlayerGui for get his current gui and script events and visible changes

#

Sorry if you know already it >v<'

frosty bolt
#

oh I didnt even notice that flaw in the code when I came by lol

low orchidBOT
#

studio** You are now Level 1! **studio

frosty bolt
#

check if Boolvalue.Value is printing a valid value or not

desert gulch
#

You haven't event connected, it's normal ?

frosty bolt
#

Alrighty, Also the likely hood is that script.Parent.Cutscene is not being defined properly, or its an invalid animation type

desert gulch
#

You want test if it's true immediately when script running ?

frosty bolt
#

ReadAnim is defined but then you have the cutscene defined inside the player?

desert gulch
#

Did the value is true when the script run ?

frosty bolt
#

so this script is inside of greg I understand?

desert gulch
#

Ok but the script doesn't look for changeing value here

frosty bolt
#

It might be easiest if you just submit the animation to roblox and then call the id instead @ivory grail

#

I havent done a lot of humanoid animating but do you need an animator for NPAs? (Non Player Anims)

desert gulch
#

No, but have it to run every time the value is changed by the click script ? I'm sorry if i haven't undestand that you already answer to this

#

Must it be adaptative ?

#

There is more efficient to check every time value, the event .Changed, who fire when the value is changed

frosty bolt
#

wait is likely going to be depreciated, I'd do task wait or heartbeat (depending on situation)

desert gulch
#

Test value in a loop is more heavy for the machine than run only when there is changes ^-^

frosty bolt
#

while wait loops are very inefficient, laggy, and old. Likely best bet is to run an animid so it only needs to grab it from the database and not from the character, also can make it easier to load it to multiple people.

Also if you want to run the cutscene without rerunning the entire script, try putting a few lines to check when the value changes, and if its true then run.

low orchidBOT
#

studio** You are now Level 8! **studio

desert gulch
#

On my mind, it have to test the value firstly, and if false then put a value.Changed:Wait() and you know that after this line, value will be true