I have defined Frame in several different ways with several different "Visible “BackgroundTransparency” “Transparency”, Visible and BackgroundTransparency work but not in the code, only in properties.
Can someone correct my code so it works?
Can you elaborate on that, it’s giving me the “Player is not a valid member of DataModel” and not doing its intended purpose, do I just define it like this: game.Player.StarterPlayer.Frame.Visible = false or game.Player.StarterPlayer.ScreenGui.Frame.Visible = false. Or is it something else.
if it’s local script then you need to define local player first like this
local player = game.Players.LocalPlayer
local PlayerGui = player:WaitForChild("PlayerGui")
local ScreenGui = PlayerGui:WaitForChild("ScreenGui")
ScreenGui.Frame.Visible = false
Are you trying to use this to change the frame while playing?
You are not defining your frame properly, the screengui is moved from the server to the player itself so looking for the frame in “game.StarterGui” won’t work.
I noticed this solution has been given a couple of times already so please mark one as “Solution”.