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

StringValue Changed Event doesn't work?

Asked by 6 years ago
Edited 6 years ago

Hey, I just searched the Roblox Wiki if there's a way to do something if a StringValue is changed. Then I came across StringValue.changed. The problem I'm now having is that my code doesn't work. No error or something at all. My code is

game.Workspace.Language.Changed:connect(function()
    print(game.Workspace.Language.Value)
end)
0
for first line try: game.Workspace.Language.Changed:connect(function(change) zor_os 70 — 6y
0
uh, no. User#21908 42 — 6y
0
Because studio play mode is now Filtering Enabled as well as the games, if you change the value manually, the script will not register a change. User#21908 42 — 6y
0
connect() is deprecated (duh) DeceptiveCaster 3761 — 6y
View all comments (2 more)
0
use Connect() DeceptiveCaster 3761 — 6y
0
Connect() is what you should use connect() is deprecated. LoganboyInCO 150 — 6y

1 answer

Log in to vote
1
Answered by 6 years ago

The problem was, that it has to be a LocalScript.

Ad

Answer this question