I got this script local Red = Instance.new("TextButton")
Red.Name = "Red"
Red.Text = "Red"
Red.Parent = game.StarterGui.TrailInv.Inventory
Red.BackgroundColor3 = Color3.fromRGB(255,255,255)
Red.TextColor3 = Color3.fromRGB(15, 91, 255)
Red.TextScaled = true
Red.TextSize = 14
Red.Font = "SourceSansBold"
Red.Size = UDim2.new(0, 160,0, 50)
Red.Position = UDim2.new(0.677, 0,0.194, 0)
this is supposed to make a new gui if the person bought the dev product but it isnt. I also tried to just make it visible and unvisible. Could someone post a answer containing both the methods please? thanks

2 comments
Didn't work. It's a script not a local script so I can't access localplayer :/
You can access LocalPlayer through a server script if you do a repeat wait() until game.Players.LocalPlayer