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

When I test my game, my script disappears?

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?

3 comments

0

You need to change from 'client' to 'server'. Your script is in there, but just the server can see it

0

roblox made for us a service alled replicated storage put the script in there and you will be able to see it

0

but if its in server script service you cant see it just like what leamir said

1 answer

✓ Accepted answer

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.

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