Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

I want make it so it waits (#) and turns back to a custom color?

function onClicked(playerWhoClicked)
    script.Parent.BrickColor = BrickColor.Red()

end

script.Parent.ClickDetector.MouseClick:connect(onClicked)

Where and how would I add a wait then add BrickColor = BrickColor.----() for a new color.

3 comments

0

..................Use your brain

0

.>

0

Very unhelpful answer... >.<

1 answer

✓ Accepted answer

try this:

function onClicked(playerWhoClicked)
wait(what you want)
    script.Parent.BrickColor = BrickColor.Red()
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)

4 comments

0

Should've let him figure it out him self it isnt hard.

0

He's literally asking because he need help, If you really wanted him to figure it out at least give hints, don't just bash people down like that...

0

Okay I've been doing scripting for like 6 hours cut me some slack and also thank you! :D

0

Light if it was something different or something he shouldn't know by know i could cut him some slack , but this is common sense.

This discussion is preserved as it was. New answers, comments, and votes are closed.