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

Why is every child of ServerStorage deleting when I join the game?

Hello, it's CatNinja4893 from Dark_Kat Studios. I was working on my latest game, GL Stunts, and I was redoing the car spawner when all of a sudden when I spawned in the game, and there were no children in ServerStorage!

I have already established that it's not a virus, so don't go answering that it might be a virus.

Let me explain my car spawner. What it does is it searches ServerStorage and takes the names of the cars in there and lets you click arrows to select any car in ServerStorage. You can get away with spawning one car but after that, it's completely broken. I also know that it's not a restriction in the car spawner.

If you know what is happening, PLEASE please PLEASE help me.

Thanks, -CatNinja4893

11 comments

0

Are you looking from a local script? Local scripts can't see anything in ServerStorage

0

You can check the server storage through Server. Not in client

0

In the above bar, click "Current Client/Server" and then you will be able to click on the Server Storage Arrows

0

When I play the game, I look in the explorer and all the children are gone

0

So what are you saying I do? the above bar thing?

0

it didnt work...

0

The client can't see ANYTHING in the server storage. In the top where the play and stop buttons are in the home tab, click the one that says something like "current client", it will change to the server view where u can look inside the ServerStorage.

0

also, your script is probably breaking because it pulls the car right out of ServerStorage, meaning it will no longer exist in there after you select it. You want to clone it and THEN pull it out of ServerStorage. You can read the cloning documentation here: https://developer.roblox.com/en-us/api-reference/function/Instance/Clone

0

But I clone it but it is still gone before i even spawn a car. i also tried spawning 2 different cars, because that would fix the not cloning (but it is cloning) problem...

0

So is the spawner script a LocalScript or ServerScript?

0

it's a script in a gui

1 answer

Simple when testing your game in Studio there is 2 modes Client-Mode and Server-Mode

Client-Mode is testing from the client like you are actually playing the game

Server-Mode is flying around from the Server's POV

And as the name implies ServerStorage is the "Server's Storage" in the workspace and it is used to prevent exploiters from messing around with things on the client side as it's suppost to not be accessed by client at all!

That is why you cannot see your objects in the ServerStorage when testing it's because your testing in the Client-Mode where you don't have access to it

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