I want this button to work only if the script's parent's child, "PackTitle", has the text "Peak Performance Pack." Would I put an if statement before it?
if script.Parent.Parent.PackTitle.Text == "Peak Performance Pack" then
And would this be added right after (with another end of course)?
Table1={"262077956","262077680","262077809"}
function onButtonClick1()
local Picked=Table1[math.random(1,#Table1)]
script.Parent.Parent.Parent.Parent.NewItemsFrame.Card1.Image ="rbxassetid://"..Picked
end

1 comment
You're a lifesaver! Thanks for helping me! The script worked!