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

When I test my game, my script disappears?

Asked by 4 years ago

I wrote out a script, and when I hit play, the script just disappears from where it is. I go into ServerScriptService (where the script is) and nothing is there. Is this a glitch with studio or something on my end?

0
You need to change from 'client' to 'server'. Your script is in there, but just the server can see it Leamir 3138 — 4y
0
roblox made for us a service alled replicated storage put the script in there and you will be able to see it asdfghjk9019 225 — 4y
0
but if its in server script service you cant see it just like what leamir said asdfghjk9019 225 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

I shall give you the answer you're looking for.

Client

The client is what we play through on each game we decide to play. Some spots such as ServerScriptService & ServerStorage can not be accessed by the Client. Only the server can access those storage files.

Server

The server is the item that receives the information from the client and replicates that to other clients. The server can access everything and anything that is within it's server.

Answer

The answer is quite simple, the Client can not see the said items in ServerScriptService so you will not be able to access or see the scripts through the said Client. You can only see it through the Server and there isn't a way to do that while playing the game truly. You can switch between the Server side and Client side in studios for your games but you need to understand studios to do something like that.

Note

If you're putting your script in ServerScriptService, you'd be wise to have a event to fire to that said script that will do something when the event is called.

Ad

Answer this question