I have an opening/closing system for a bank. I have a BoolValue inside Workspace. The value is called opened. This value determines if the bank is opened or closed. If the value is true, than the bank is open. If the value is false, the bank is closed. I also have a Part in the workspace with a SurfaceGui. Inside that, there is a TextLabel. I have a Script inside the TextLabel. I used the :GetPropertyChangedSignal() function, but it didn't work.
I think I messed up with the script, but I don't know.
Here's the script:
local text = script.Parent.Text
local open = script.Parent.Parent.Parent.Parent.Opened
open:GetPropertyChangedSignal("Value"):Connect(function()
if open.Value == true then
text = "Opened"
else
text = "Closed"
end
end)
Any help??

1 comment
You need to use a LocalScript to make changes on Guis, but dont put the LocalScript in the Workspace, place it in a Client-Specific Area, like StarterGui, you'll have to manually input the "text" and "opened" variables