Unable to access content folder in the Roblox Player

I’ve recently decided to attempt to recreate The Stanley Parable, as I found it very fun to play.
Unfortunately, the narrator’s narration is cut up into many, many audio files. I do not have the Robux to be able to afford every one of these to the website, so I decided to just use the content folder.

Placing all the audio files in a folder inside of the studio’s content folder worked great! However, when moving the audio files, contained in their own folder, into the content folder for the actual Roblox Player, it doesn’t seem to be able to find them. (unable to get sound data when in game)

Does rbxasset:// point to a different place in the actual player than it does in studio?

for anyone wondering, yes I am aware that adding things to the content folder will only show up for my computer and not others

Your content folder only works in studio locally, did you upload the audio files?

1 Like

I did not upload the audio files. But doesn’t the player have it’s own content folder? I found a folder titled “content” in the Roblox Player’s folder, and it looks the same as studio’s, but it just doesn’t seem to work in game.

No that’s not how it works. If you could simply drag and drop files and use them in-game then nobody would be uploading, you need to upload each audio file and pay Robux in order to use them in-game.

1 Like

So the Roblox Player doesn’t have a content folder, unlike studio does? How come inside of the Roblox Player there is a folder titled “content”, which looks exactly like the one found in studio’s folder?

Not sure, but you can’t use the audio files anyway.

Are you 100% sure, though? It seems quite odd that I am able to simply drop the audio files into studio’s content folder and use them from studio without uploading them, considering the Player has it’s own content folder which appears to be set up like the studio’s content folder.

Even if you managed to put audio files inside the Roblox player content folder, you wouldn’t be able to play it since SoundService grabs the audio from Roblox (rbxasset://) so yes it’s impossible.

That confuses me. According to Roblox’s documentation, rbxasset:// fetches files from the content folder. And it works exactly as I expect it to in studio.

Mainly, I’m confused as to why this is functioning inside of Studio but not the Player.

“Roblox’s content folders” is stored in the Roblox servers not your local client :man_facepalming:

1 Like

It works in Studio because Studio is considered to be a testing environment. While many developers also test their game in the Player, it’s not considered to be a testing environment, so Roblox isn’t going to load any local data you may have stored.

2 Likes

Ah, I was just misunderstanding him then. I just needed to know why it didn’t work in the Player but it did in Studio. Thank you for clearing it up! Still confuses me though as to why the Player has a content folder on the computer if it doesn’t use it.