For whatever reason Changed events don't work in PlayerAdded event?

Yeah, I really have no idea why it isn’t printing anything. I set it up correctly I think, it accesses a folder within the player that holds a number value, and I want to do some testing on it every time it’s value changes. The Changed event does not print anything, even though I change it myself in Studio test mode (I also believe that realistic play test mode is turned off, so FE should not be an issue here)

Really has me stumped, as why there’s not a single error and it just does not print or do anything.

Makes no sense, also doesn’t work outside of the PlayerAdded event as well. Any advice here?? Thanks.

1 Like

Okay…so I guess realistic play mode was turned on I’m assuming? I created a loop to randomly change the value and now the changed event is responding to it.

Could anyone tell me where I’m able to access that setting though? I forget what it’s called/where to find it.

Thanks!

1 Like

Can you provide the code you’re doing please? We can’t help without.

1 Like

Make sure that you are not changing the value on the client. There’s the client model and the server model. Click on the button to switch to the server. Clients don’t have access to change things on the server, so it may have to do with filtering enabled.

Screenshot_8

2 Likes

Sometimes when you test in studio PlayerAdded doesn’t fire because the server and the client are both started simultaneously. Have you checked this is not the case?

1 Like

You shouldn’t do that. This is the primary cause of “it works in Studio but not in-game” complaints and improper play tests. The ability to opt out of Accurate Play Solo will be removed soon as the old play test method is going to be deprecated and removed in the future.


Changed does work, you’ve probably set up your hierarchy wrong. It could be the case of a wrong environment accessing something (client accessing a server value or server trying to get changes from a client set).

You haven’t provided anything so it’s hard to determine what specifically is the issue.

1 Like

Thanks for the replies guys! So yeah, the issue was I was testing it in studio and I was setting the value of my IntValue to something and wanted to see if my level up thing would work, I guess that’s why Changed never ran, it must’ve been set to accurate play.