After you step on the Part that makes the shop open, it opens once. If you try again it won't open??
Script In Part
CanOpen = true
function onTouched(hit)
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
if plr then
if CanOpen == true then
local shop = plr:WaitForChild("PlayerGui").ShopUI.Shop
shop.Visible = true
CanOpen = false
wait(1)
CanOpen = true
end
end
end
script.Parent.Touched:connect(onTouched)

1 comment
I suggest using a RemoteEvent and opening it from the client.