I want the variable "a" to represent the script's parent's image. Then, I want the zoomed version of a card to appear and have the script's parent's image just after the script's parent is clicked. The output says nothing, however, the zoomed card does appear, but it displays the default ROBLOX decal image (the grey 'R').
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)
You are changing the location of the image, make sure you reference where the new location of your image is script.Parent.Parent.CardBackground.Card.Image
- Make sure you set the visibility/transparency to where you can see it. Hopefully this will help you, if you need anything else let me know.