I have tried making a simulator shop work on touch before but non of them work. Here is the code:
local taken = false
script.Parent.Touched:Connect(function(hit) if hit then if hit.Parent:FindFirstChild("Humanoid") then if taken == false then taken = true local plr = players:GetPlayerFromCharacter(hit.Parent) game.ReplicatedStorage.Gui:FindFirstChild("Shop"):Clone().Parent = plr.PlayerGui.Shop.Frame taken = false end end end)

3 comments
zap, if you click the lua icon (if you hover over it, it says code block), you can put your code in between the ~~~~~~~ and then your code will look like actual lines of code instead of just typing it in.
just a little tip^
ok