Script not detecting folder in Workspace

There WaitForChild would be useless.

Use

Game.Workspace:FindFirstChild(“Music”) 
or look if its getting deleted Before the script is executed.

Oh lol, I thought your question was a little strange and I laughed a little.

that was a good one

2 Likes

There isn’t any other scripts that would be interfering, or deleting the folder.
heh heh

if thats the case try this code

Wait()
Game.Workspace:FindFirstChild(“Music”).Path to script.Disabled = true

I cant think of any other issues that could be happening. With the script as the game would have loaded with the character and the scripts. But if all else fails try :WaitForChild()

2 Likes

let me try it and i’ll tell you the results

1 Like

Have you tried using WaitForChild? A lot of other people have suggested it.

game.Workspace:WaitForChild("Music"):WaitForChild("Installer").Disabled = true
game.Workspace:WaitForChild("Music"):WaitForChild("Installer"):WaitForChild("LocalScript").Disabled = true

Sorry if it’s a little messy

1 Like

Thanks for the help! However @samjay22 's solution has worked, thank you for the help though.
I appreciate it!

1 Like

More like try WaitForChild() and if all else fails, try wait().

Use :WaitForChild() here as it is the more appropriate methodology

@Messeras

 local music = workspace:WaitForChild("Music")
 local installer = music.Installer

 installer.LocalScript.Disabled = true

Game and Wait() are deprecated too, use game and wait().

1 Like