Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to script a simulator shop on touch?

Asked by
zapzser -3
4 years 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 — 4y
0
just a little tip^ BhadTrains -3 — 4y
0
ok zapzser -3 — 4y

Answer this question