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

Why is this simple script not working?

Asked by 8 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

When a card is clicked, a zoomed version of the card appears beside it. Still not sure why this isn't working.

a = script.Parent.Image
function onButtonClick()
    script.Parent.Parent.CardBackground.Card.Image = a
    script.Parent.Parent.CardBackground.Card.Visible = true
end
script.Parent.MouseButton1Click:connect(onButtonClick)
0
Any error? funyun 958 — 8y
0
@funyun Output isn't saying anything. Everything is located correctly according to the explorer. Not sure what is wrong. :/ User#4422 0 — 8y
0
Can you describe the hierarchy of objects? BlueTaslem 18071 — 8y

Answer this question