Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I fix my Decal Changing TV?

Asked by 3 years ago
Edited 3 years ago

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)

0
Can you please put your code in a code block so we can easily read it? COUNTYL1MITS 312 — 3y

Answer this question