Hi there. I'm trying to make a radio where you can listen to various different radio stations. The radio scripts are stored in the workspace, and I'm trying to make so you can switch radio stations. My scripts for the radio station don't work though.
function onClicked()
script.Parent.Parent.OFF.TextTransparency = 1
script.Parent.Parent.CURRADIO.TextTransparency = 0
math.random(1,3)
if 1 == true then
workspace.DCF.Play.Disabled = false
script.Parent.Parent.CURRADIO.Text = "Double Cleff FM"
end
if 2 == true then
workspace.DCF.Play2.Disabled = false
script.Parent.Parent.CURRADIO.Text = "MSX"
end
if 3 == true then
workspace.DCF.Play3.Disabled = false
script.Parent.Parent.CURRADIO.Text = "Flashback FM"
end
end
script.Parent.MouseButton1Click:connect(onClicked)

1 comment
Check out my answer, also i failed to mention but, please use :Connect() as :connect() is deprecated.