GUI not turning visible when the script tells it to

So everything works out just fine and the frame has visible checked on it but it’s not visible for some reason any help? here’s the script:

local status = game.Workspace.door.Status.Value

local Gui = game.StarterGui.ScreenGui.Frame

if status.Value == “Something” then

Gui.Visible = true

btw I typed this on keyboard and didn’t copy and paste the script so it might not have ends when it’s supposed to

This is only changing the gui for everyone when they reset, Use PlayerGui

Change that to this:
local Gui = game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame

First of all if you’re going to change the property of a UI element, you need to change the exact player’s GUI. Changing the Starter Gui will result in the changes only applying to a player who joins afterwards. Also are you using a local script or a server script?

local script eeeeeeeeeeeeeeeeeeee

sorry im kind of a noob aaaaaaaaa

every single one of these replies gave me the answer so which one am i gonna mark as solution