Hi! So I'm creating my game and the game doesn't detect whenever the stage the player is in changes. So, I wanna know if I can use the Changed event as an if statement like for example
1 | local specifiedStage = -- Source Code Can't Leak it |
2 |
3 | if specifiedStage.Changed then |
4 | -- Do coding |
5 | end |
You can try this:
1 | local specifiedStage = --your source code |
2 |
3 | specifiedStage.Changed:Connect( function (changed) |
4 | --Do code |
5 | end ) |
This will make it so whenever the value is changed, it will run the function.