Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

How to script a simulator shop on touch?

Asked by
zapzser -3
13 days ago

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)

0
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. BhadTrains -3 — 13d
0
just a little tip^ BhadTrains -3 — 13d
0
ok zapzser -3 — 13d

Answer this question