This is a onclick command i think
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = script.Parent
local textButton = Instance.new("TextButton")
textButton.Parent = screenGui
textButton.Position = UDim2.new(0, 15, 0, 300)
textButton.Size = UDim2.new(0, 200, 0, 50)
textButton.TextColor3 = BrickColor.White().Color
textButton.Style = 2
textButton.Text = "Load Game" ------- up till here i believe it creates a textbutton but i dont know what went wrong
textButton.MouseButton1Down:connect(function()
game.StarterGui.MainLocalScript.introgui.Background.backgroundTransparency = 1
end)
but it said backgroundTransparency is not a valid member
or
logo is one of the imagelabel and backlogo is another and mainlocalscript is the localscript name
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = script.Parent
local textButton = Instance.new("TextButton")
textButton.Parent = screenGui
textButton.Position = UDim2.new(0, 15, 0, 300)
textButton.Size = UDim2.new(0, 200, 0, 50)
textButton.TextColor3 = BrickColor.White().Color
textButton.Style = 2
textButton.Text = "Load Game"
textButton.MouseButton1Down:connect(function()
game.StarterGui.MainLocalScript.introgui.Background.logo.imageTransparency = 1
game.StarterGui.MainLocalScript.introgui.Background.backlogo.imagetransparency = 1
end)
i did this but it says imageTransparency is not a valid member
help? if its possible pls... how do u delete the imagelabel through scripts
so.. i tried this
textButton.MouseButton1Down:connect(function() game.StarterGui.MainlocalScript.introgui.Background.logo.ImageTransparency = 1 game.StarterGui.MainlocalScript.introgui.Background.backlogo.ImageTransparency = 1 end)
just changed the bottom part but err nothing happened D: can someone guide me? what did i done wrong? pls bare with me im new to scripting

2 comments
Thank you
err can i do visible = false?