Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I'm trying to make a script that looks for a part and if it isn't there it function, Help?

this is my script and if you know how to fix it tell me how to please

if game.Workspace.Songs == nil then

4 comments

0

if game.workspace:FindFirstChild("Songs") == nil then end or if not game.workspace:FindFirstChild("Songs") then end

0

i will try

0

didnt work

0

Try my answer and tell me what happens if it does not work.

1 answer

if not workspace:FindFirstChild("Songs") then
	-- Code here
end

If it exists then it will return true, if not then it will return false.

This discussion is preserved as it was. New answers, comments, and votes are closed.