Absolutely Nothing wrong here but not working

So this is my script but the frame aint showing
this is a local Script

local player = game.Players.LocalPlayer

local Frame = player.PlayerGui:WaitForChild(“ScreenGui”).Frame

local Prompt = script.Parent


print(“Prompt Triggered”)

Frame.Visible = true


What’s wrong here?

Where is this LocalScript located?

inside the prompt where i guess it should be

Does it print when you trigger the prompt

no it doesnt im wondering why though

Try this in a ServerScript instead.

local Prompt = script.Parent

	plr.PlayerGui.ScreenGui.Frame.Visible = true

Might also be better to :FireClient to the client if you’re doing anything more than making the Frame visible.

put your local script in a replicated script service, starterplayerscripts startergui starter character scripts.

1 Like

Adding onto this yes, keep in mind your LocalScript will only work if it’s in one of the following, I only suggested a server script under the assumption you wanted it still parented but if you want to keep this all Local do this instead