debounce = false
function onTouched(hit)
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
if plr and debounce == false then
debounce = true
plr:WaitForChild("PlayerGui").ShopGui.Frame.Visible = true
debounce = false
end
end
script.Parent.Touched:connect(onTouched)
how touch part open shop did not work

5 comments
why are you waiting for the playergui
why are you waiting for the playergui
until he finds. I do not know. a few weeks I started to learn lua
Look on yt and it'll help you.
I've already looked for nothing