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
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)
the script is to make a textbutton named: 'Load Game' and its suppose to make the imagelabels blocking the screen to be transparent but i dont know how to make the image and the textbutton destroyed when i press the load game text button D: hope you guys will be patient with me i just started to get a hang of scripting sorry
I'm hoping this fixes things. There are basic error fixes. Let me know if something is not working.
local screengui =Instance.new('ScreenGui',script.Parent) local textbutton =Instance.new('TextButton',screengui) textbutton.Position=UDim2.new(0,15,0,300) textbutton.Size=UDim2.new(0,200,50) textbutton.TextColor3=Color3.new(255,255,255) --white textbutton.Style=Enum.ButtonStyle.Custom --you can change this to RobloxButton, RobloxButtonDefault, RobloxRoundButton, RobloxRoundDefaultButton, or RobloxRoundDropdownButton textbutton.Text='Load Game' textbutton.MouseButton1Down:connect(function() script.Parent:remove() end)