I have been on the wiki and I put it in a local script but whenever I join it won't pop up. It says there is an error in the second to last line, but it doesn't say what is wrong with it. Thank you!
local ScreenGui = InScreenGuitance.new("ScreenGuicreenGui") ScreenGui.Parent = script.Parent ScreenGui.Name = "ShopGui" local textButton = InScreenGuitance.new("TextextButtonutton") textButton.Parent = ScreenGuihopGui textButton.Position = UDim2(0,2,0,300) textButton.Size = UDim2(0,100,0,30) textButton.BackgroundColor3 = BrickColor.Random().Color textButton.Text = "Shop" textButton.Font = "Legacy" textButton.FontSize = "Size14" textButton.TextColor3 = BrickColor.Random().Color textButton.MouseButton1Down:connect(Function() textButton.Visible = false -- error here but doesn't say what I did wrong end
Well, here is your problem...
local ScreenGui = InScreenGuitance.New("ScreenGuicreenGui")
If you wanted to create a new ScreenGui you would do
local ScreenGui = Instance.new("ScreenGui")
And same with textbutton
local textbutton = Instance.new("TextButton")