Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 3 years ago

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

0
Are you looking from a local script? Local scripts can't see anything in ServerStorage vector3_zero 1056 — 3y
0
You can check the server storage through Server. Not in client Soban06 410 — 3y
0
In the above bar, click "Current Client/Server" and then you will be able to click on the Server Storage Arrows Soban06 410 — 3y
0
When I play the game, I look in the explorer and all the children are gone CatNinja4893 -3 — 3y
View all comments (7 more)
0
So what are you saying I do? the above bar thing? CatNinja4893 -3 — 3y
0
it didnt work... CatNinja4893 -3 — 3y
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. FirewolfYT_751 223 — 3y
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 FirewolfYT_751 223 — 3y
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... CatNinja4893 -3 — 3y
0
So is the spawner script a LocalScript or ServerScript? imKirda 4491 — 3y
0
it's a script in a gui CatNinja4893 -3 — 3y

1 answer

Log in to vote
0
Answered by
P_4rio 30
3 years ago
Edited 3 years ago

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

Ad

Answer this question