I have some scripts that will allow my main menu to work. They are not working!
local Play = script.Parent
local Main = script.Parent.Parent.Parent
local Stats = script.Parent.Parent.Parent.Parent.Stats
Play.MouseButton1Click:Connect(function()
Main.Enabled = false
end)
Play.MouseButton1Click:Connect(function()
Stats.Enabled = true
end)
AND
local Play = script.Parent
local Tut = script.Parent.Parent.Parent.Parent.Tutorial
Play.MouseButton1Click:Connect(function()
Tut.Enabled = true
end)
Ack! I thought these were scripts. It makes sense - Scripts can be Disabled = true/false, not Enabled.
Still, put more prints everywhere! Put them in the connected functions (before the Main.Enabled = false and such)!
Then, report back, see whether it can print and set Enabled successfully!
Its not recommended to use “script.Parent.Parent.Parent.Parent”
--FirstScript change your variables
local Play = script.parent
local Main = Play.Parent.Parent
local Stats = Main.Parent.Stats
--Second Script change your variables
local Play = script.Parent
local Tut = Play.Parent.Parent.Parent.Tutorial
if they did not print the text then i have a question
Edit for @ccletusx she/he its probably trying to get something that is the child of the object like how my chat Gui is set up https://gyazo.com/9c435f0fe4a02f9aecfedd73fc212cbd
Here the chat control script has to call