I made a volcano in my game and when you click on the ClickDetector, it's supposed to tween the position of the Frame. For mobile, it does else even if you are a Premium member. Code:

local mar = game:GetService("MarketplaceService")
local userInputService = game:GetService("UserInputService")

function click(p)
if p.MembershipType == Enum.MembershipType.Premium then
p.PlayerGui.screen.Frame:TweenPosition(UDim2.new(0,0,0,0))
p.PlayerGui.screen.Frame.Visible = true
else
mar:PromptPremiumPurchase(p)
end
end

script.Parent.ClickDetector.MouseClick:Connect(click)

This only works if you try a few times. If you can help, thank you. (in my game called car )

1bitPro