Hi, I’ve been creating a home menu for my game however when I go and test on mobile, they don’t seem to work, none of them do. They all work fine on PC. Any fixes or suggestions, thanks.
-- Variables --
local playButton = script.Parent.PlayButton
local storeButton = script.Parent.StoreButton
local quitGameButton = script.Parent.QuitGameButton
local storeFrame = script.Parent.StoreFrame
local mainFrame = script.Parent
-- Scripts --
playButton.MouseButton1Click:Connect(function()
mainFrame.Visible = false
end)
quitGameButton.MouseButton1Click:Connect(function()
game.Players.LocalPlayer:Kick("You left")
end)
storeButton.MouseButton1Click:Connect(function()
storeFrame.Visible = true
end)