Here's The Script:
script.Parent.TouchPart.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
game.GUIS.GamepassShop.ShopFrame.Visible = true
game.Workspace.Map.Parts.MainBase.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
game.GUIS.GamepassShop.ShopFrame.Visible = false
game.Workspace.Map.Parts.SideWalk2.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
game.GUIS.GamepassShop.ShopFrame.Visible = false
end
end)
end
end)
end
end)
There is no error message I don't understand what is wrong. I am a beginner scripter.

3 comments
Could you explain more in detail what is happening? Is it working or not? Does the gui pop up or not?
If you use Game.StarterGui and make changes there, they only take effect when a player spawns his character again. Each GUI is put in Player.PlayerGui separately for each player.
Should i use the StarterGui as its class name?