script.Parent.ClickDetector.MouseClick:connect(onClicked)
function onClicked()
Game.Workspace.UX1.BrickColor = BrickColor.new("Really red")
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
function onClicked()
Game.Workspace.LX1.BrickColor = BrickColor.new("Really red")
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
function onClicked()
Game.Workspace.NAME1.BrickColor = BrickColor.new("Really red")
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
function onClicked()
local s = Instance.new("Sound")
s.Parent = game.Workspace
s.SoundId = "http://www.roblox.com/asset/?id=922451844"
s.Pitch = 1
s:play()
wait(1.306)
s:Stop()
s:remove()
end
script.Parent.ClickDetector.MouseClick:connect (onClicked)
I am trying to make a talent show panel, this is the script I used, the sound plays but the brick color will not change.

2 comments
is there an output? You can also condense this, you don't need multiple functions
F r e e c o d e i s f r e a k c o d e