Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

GetPropertyChangedSignal not firing when text changes?

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)

2 comments

1

This sounds like a FE related problem. Where are the values changed from? A localscript, tool or anything similar?

0

A ServerScript in a gui

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.