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

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

Asked by 7 years ago
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.

0
..................Use your brain farrizbb 465 — 7y
0
>.> BlackDragonSlayer360 -3 — 7y
0
Very unhelpful answer... >.< LightModed 81 — 7y

Closed as Not Constructive by TheeDeathCaster, farrizbb, Azmidium, and TheHospitalDev

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 7 years ago

try this:

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

script.Parent.ClickDetector.MouseClick:connect(onClicked)
0
Should've let him figure it out him self it isnt hard. farrizbb 465 — 7y
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... LightModed 81 — 7y
0
Okay I've been doing scripting for like 6 hours cut me some slack and also thank you! :D BlackDragonSlayer360 -3 — 7y
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. farrizbb 465 — 7y
Ad