i have two guis to give me an item called good. one made entirely with scripts.it is:
local ScreenGui = Instance.new("ScreenGui", script.Parent); local TextButton = Instance.new("TextButton", ScreenGui); TextButton.Position = UDim2.new(0,1,0,1); TextButton.Size = UDim2.new(0,150,0,100); TextButton.BackgroundColor3 = Color3.new(255,255,255); TextButton.Style = (3); TextButton.Text = ("builder"); TextButton.MouseButton1Down:connect(function() local Good = game.Lighting.good:Clone(); Good.Parent = game.Players.LocalPlayer.Backpack; end)
the other is made with insert object. it is:
bin = game.StarterGui.plop.test function Clicked() local Good = game.Lighting.good:Clone(); Good.Parent = game.Players.LocalPlayer.Backpack; end bin.MouseButton1Down:connect(Clicked)
the first one works perfectly, but i cant see it unless i press the play button. i want toreplace it with the one i can see, but it doesnt work.
test = an image button plop = a screen gui they are both local scripts. help please
I found error in your script. Change bin location to script.Parent.plop.test And change script parent to game.StarterGui