There is a error on the last "end)" near the bottom of the script.
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.MainBase.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
game.GUIS.GamepassShop.ShopFrame.Visible = false
game.Workspace.SideWalk2.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
game.GUIS.GamepassShop.ShopFrame.Visible = false
end
end)
end
end)
end
end
end)
and here's the error message:
Workspace.Buildings.Shop.Script:16: Expected ')' (to close '(' at line 1), got 'end'
I am a beginner and I don't understand this error message.

1 comment
Please format your script better so we can help more easily. There is a 'Code Block' option when asking a question that formats your code better so it is easier to read.