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.
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.
try this:
function onClicked(playerWhoClicked)
wait(what you want)
script.Parent.BrickColor = BrickColor.Red()
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
Should've let him figure it out him self it isnt hard.
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...
Okay I've been doing scripting for like 6 hours cut me some slack and also thank you! :D
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.
3 comments
..................Use your brain
Very unhelpful answer... >.<