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

Trying to make a script that moves an image into another frame, why isn't it working?

Asked by 9 years ago

When a player opens a card pack, he should be able to click the list item and save that image to his team, why isn't this working? Heirarchy is correct, I checked, no error in output.

if script.Parent.Parent.BackgroundTransparency == 0 then
    a = script.Parent.Image
        function onButtonClick()
            if script.Parent.Parent.Parent.Parent.MyClubMenu.CardsFrame.Player1.Image ~= "" then
                script.Parent.Parent.Parent.Parent.MyClubMenu.CardsFrame.Player1.Image = a  
            end
        end
    end
script.Parent.Parent.Parent.Actions.SaveCard.MouseButton1Click:connect(onButtonClick)
0
I'm logging off, I'll check my answers in the morning. Don't expect to be able to reach me. User#4422 0 — 9y
0
What is not happening that is supposed to be happening? 1waffle1 2908 — 9y
0
@1waffle1, The image doesn't appear on the other frame. User#4422 0 — 9y

Answer this question