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

GetPropertyChangedSignal not firing when text changes?

Asked by
Filipalla 504 Moderation Voter
6 years ago

im trying to make a textbox to change the volume of my sound this piece of code works in studio but not in online and i have no idea why it doesn't even print "Text Changed" in the developer console

--Server Script--
script.Parent.Volume:GetPropertyChangedSignal("Text"):connect(function()
    print("Text changed")
    script.Parent.Car.Value.EngineBlock.Radio.Volume = tonumber(script.Parent.Volume.Text)
    if script.Parent.Volume.Text == "" then
        script.Parent.Car.Value.EngineBlock.Radio.Volume = 1
    end
end)
1
This sounds like a FE related problem. Where are the values changed from? A localscript, tool or anything similar? User#834 0 — 6y
0
A ServerScript in a gui Filipalla 504 — 6y

1 answer

Log in to vote
0
Answered by
Filipalla 504 Moderation Voter
6 years ago
Edited 6 years ago

I managed to get it working :D apparently roblox did not like my check for no text

script.Parent.RadioVolume.OnServerEvent:connect(function(player, text)
    print("Vol Property Change")
    script.Parent.Car.Value.EngineBlock.Radio.Volume = tonumber(text)
end)

i also check for change in a localscript now

Ad

Answer this question