Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to change frame visibility?

i am trying to make Instance script were you Instance frame i instance it but it dosent show up the transperacy is 0 and its visible = true and its in local script

local dot = Instance.new("Frame")
dot.BackgroundColor3 = Color3.fromRGB(255, 255 , 255)
dot.Size = UDim2.new(0, 50, 0, 50)
dot.Position = UDim2.new(0, 10,0, 10)

dot.Parent = game.StarterGui.ScreenGui.Frame

1 answer

you are modifying the StarterGui, everything thats inside the startergui gets cloned into the PlayerGui of a player so if you modify something in StarterGui it will only show after the players dies so if you want the modify it instantly you have to modify the PlayerGui

the PlayerGui is part of the player. like this Player.PlayerGui

see PlayerGui vs StarterGui

This discussion is preserved as it was. New answers, comments, and votes are closed.