values:FindFirstChild("Place").Changed:connect(function(PlaceID)
wait(1)
if values.Rally.Value == true then
game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
Text = "You have changed the deployment destination to "..values:FindFirstChild("Place").Value..".";
Color = Color3.new(0,1,1)
})
end
end)

For reference, click here.

This works in Studio, except not in online mode.. I don't know what's up with this.

Please note that the value "Place" is an IntValue.

5 comments

0

if you are using FE, change it via the remote event. otherwise, changed does work. the problem with the possible code is that the values are never being changed. so then the event never runs. and changed does not take any param

0

Nah.. the value is changing. I'm printing it in developer console and it's constantly changing.

0

print statement in the condition and out of it can help

0

Where does the variable 'values' reference? Maybe it is somewhere a LocalScript can't access 

0

Filtering does not affect what happens in studio because there's no server to replicate to.