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

How to make the script recognize that the part is in a folder?

so im trying to get it to recognize that it's in a folder in workspace

if ( humanoid ) then
		workspace.SoundTouchPart.Sound:Play()

My folder is called "Coins" and when the coin in a folder it doesn't play the sound but it when it's out of the folder it does

I just want it to be in the folder for organization purposes, thanks!

1 answer

if ( humanoid ) then workspace.Coins.SoundTouchPart.Sound:Play()

That should work.

Workspace is the main area and then the folder is within workspace so you just use a . dot after workspace to ref the next location which is Coins and then another . dot and then your file.

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