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

Changed event doesn't fire?

Asked by
drew1017 330 Moderation Voter
9 years ago
Targeted = script.TargetedPlayer

Targeted.Changed:connect(function()
    print'wow'
end)

Plain and simple, it doesn't print when I manually change something about Targeted. halp

0
Where is the script/value parented? TheGuyWithAShortName 673 — 9y
0
The script is in a model, the value in the script. drew1017 330 — 9y
0
What property are you trying to change? Oddly, Changed doesn't fire for certain things, like NumPlayer for example. Perci1 4988 — 9y
0
It's a BoolValue. drew1017 330 — 9y
View all comments (2 more)
0
Changed doesn't fire for stuff like that. If you wanted to detect if NumPlayers changed, you'd have to check if "Players" changed. ObscureEntity 294 — 9y
0
What's an alternative? drew1017 330 — 9y

Answer this question