For context when i press a button in starter gui
local function onActivated()
if not debounce then
debounce = true
script.Parent.Parent.Sound:Play()
local num = math.random(1, 4)
-- below this actually works
if num == 4 then
workspace.Row1.Value = 4
end
debounce = false
end
end
imageButton.Activated:Connect(onActivated)
This actually works as when i press it and the num is 4 then it will change the value to 4 but i cant detect if it changes to 4, ive tried.
script.Parent:GetPropertyChangedSignal("Value"):Connect(function()
print(script.Parent.Value)
end)
thats what ive tried and i dont see anything wrong with it?

7 comments
how would i go about doing that?
hmm do you need the actual code itself?
hmm do you need the actual code itself?
Ill just edit it hold on
yes i need the script of recieveing the event and where i would put that script?
nvm you solved it
lol