[NEED HELP] game on the site not working, in studio, working

When im in studio all animations work and all scripts do, but when i join the actual game, it stops working, any fix?

You need to be more specific. Provide the code that isn’t working.

No, the whole game is broken, the scripts the animations, absolutely everything, i didnt know which category to use. in studio its fine tho.

A few things I can think of:

  1. You have a main script which controls the whole game, which doesn’t run in the main game. Because it’s very unlikely that it’s everything that doesn’t work in the main game.
  2. Pretty simple, but might be worth mentioning, you forgot to publish.
  3. You might have a datastore, or something similar that is breaking the game, but they are not enabled in studio. (To make sure these things are enabled in studio, go to the game settings > security > allow studio API access (or something similar, it’s easy to find).

Note for the third one: it’s recommended to not enable studio API access in your main game, instead make a test version of the game and enable it there.

1 Like

if the creator of the game isnt the same creator of the animations then they wont work ingame

also you probably have a lot of other problems if nothing else is working (like what @MasterMinionnn is saying) ((and the keybind to publish is alt+p)

3 Likes

You guys dont understand, if i start a 2 player server in studio, it works, on the website it doesnt, i publishd it, and i checked every script.

There are way too many variables to account for and not enough is explained for us to be able to tell you what the problem is.
Here’s some debug steps you can take:

  • Republish the game and verify that it’s being published through the Output dock (ex: Publishing blabla… Blabla successfully published)
  • Press F9 or type /console in game, then check if there are any errors in both the Client and Server logs within the dev console. If there are, I would recommend creating a new post that better explains the problem with context.
  • Give us more information. Have you used free assets or allowed anyone else to work on the game? Are you incorporating datastores in the game? Tell us more about the scripts that you’ve checked.
2 Likes