I added a ring into the workspace and placed it in front of my shop model and scripted it so that when a person touches the ring, the shop GUI would appear. I then added a local script into StarterPlayerScripts and typed the script below. But when I tested it out, the Shop GUI wouldn't open and there was no error on the output. I do not know what is happening. Where is the error or thing that I should update on my script?
Script:
local ShopRing = game.Workspace.ShopRing
ShopRing.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local ShopGUI = game.StarterGui.ShopGuiScreen.ShopFrame
ShopGUI.Visible = true
end
end)

1 comment
You need to get the GUI from the player's PlayerGui, not StarterGui.