Hello! I am a really new scripter and I need some help. I am trying to make a TV that changes Decals, but my script just makes the Music start over again. Please help!
local ClickDetector = script.Parent.ClickDetector
local screen = game.Workspace.TV.screen
local MD = game.Workspace.MD
ClickDetector.MouseClick:Connect(function(onMouseClick)
MD:Play()
repeat
screen.no.Transparency = 1
screen.work.Transparency = 0
wait(.5)
screen.may.Transparency = 0
screen.work.Transparency = 1
wait(.5)
screen.no.Transparency = 0
screen.may.Transparency = 1
wait(.5)
until ClickDetector.MouseClick:Connect(function(onMouseClick)
screen.may.Transparency = 1
screen.work.Transparency = 1
screen.no.Transparency = 1
end)
end)

1 comment
Can you please put your code in a code block so we can easily read it?