I'm trying to make a computer with a clickable home button, but when clicked nothing happens.
local button = script.Parent button.MouseButton1Down:connect(function() script.Parent.Parent.StaertMenu2.Visible = true script.Parent.Parent.StarMenu.Visible = true script.Parent.Parent.StartMenu.Log.Visible = true end)
I'm a bit of a noob at scripting, so please go easy on me!
It should work, but you spelled "StartMenu" a different way on every line it was mentioned "StaertMenu2" "StarMenu" "StartMenu"
The output window is your friend, open that in the view tab, it'll tell you what's going wrong!
Try this:
local button = script.Parent button.MouseButton1Down:connect(function() script.Parent.Parent:FindFirstChild("StaertMenu2").Visible = true script.Parent.Parent:FindFirstChild("StarMenu").Visible = true script.Parent.Parent:FindFirstChild("StartMenu").Log.Visible = true end)
Hope this worked for you! If it works for you accept my answer.
--MajinBluee