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)
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