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

Why wont the billboard gui change color?

Asked by 2 years ago

Here's my script (Local Script)

script.Parent.Size = 50
script.Parent.Parent.ClickDetector.MouseClick(function()
    script.Parent.cooldown.front.BackgroundColor3 = Color3.new(1, 0.4, 0.4)
end)

the background color of a imagelabel under a billboard GUI is supposed to change colors when the block it is inside of is clicked, however, it wont. I have been at this for hours trying to fix it and i've finally given up. Any ideas why it wont work? Any help is greatly appreciated.

1 answer

Log in to vote
0
Answered by
sngnn 274 Moderation Voter
2 years ago

That's not how you connect to an event... It would look something like this:

script.Parent.Parent.ClickDetector.MouseClick:Connect(function()
    -- code
end)

It may also help if you checked on the documentation for events.

0
I realized my mistake with not adding connect. Rookie mistake really. Also, that isnt how you connect an event either. An event would be connected through the client or server recieving CameUpFromNothing 37 — 2y
Ad

Answer this question