Hey, so I have no idea why this is happening, but apparently, even though the code changes the Baseplate’s color when I play on mobile, none of the buttons do anything when I click them, here’s my code:
for i,t in pairs({shop_buttons:GetChildren(), frame_buttons:GetChildren()}) do
for i2,b in pairs(t) do
if b:IsA("ImageButton") then
game.Workspace.Baseplate.BrickColor = BrickColor.Random()
b.Activated:Connect(function()
if b.Parent.Name == "Buttons" then --Check to see if the button is a shop category
if b.Name == "Close" then
shop_frame.Visible = false
else
Enable_Shop_Frame(b.Name)
end
else --If not, it must be a regular frame button
Enable_Frame(b.Name)
end
end)
end
end
end
Some brief background as to what this is, it basically connects each shop button to a clicked function that’ll update the selected shop frame. Ex: If I click on Coins, it’ll make the Coins frame visible for me, and so on…
I’m borderline ready to blame the Roblox game engine for this one, as I have by no means any clue as to why this might be happening. Works perfectly on PC, but for all mobile testing I’ve done it has not once worked. Any help appreciated, thanks.