PlaceVersion only returning 0

print(game.PlaceVersion) -- Returns 0

Title says it all. I know it returns 0 in studio, but even when I play the game online it still prints 0

Can anyone explain why this would happen?

2 Likes

I’m sure this is based on the Place Version in the Roblox Studio settings, so I would look there first.

  1. Go to Configure Place
  2. Click on the Version History tab.

Yea it’s suppose to print the latest version. But if the version is like 123, then it should print 123, not 0

2 Likes

Just to verify, is your game active and not just private?

1 Like

It is active

1 Like

Strange. Mine works fine.
27%20PM

However, I put a wait(5) before it prints the place version. Maybe try that?

1 Like

I can confirm mine’s works fine as well

Have you ever reverted to a previous Version or have you used a previous save file?

PlaceVersion is not replicated across the Client/Server boundary. It states this on it’s Dev Hub page. So accessing it on the server is fine. But doing so on the client will return 0.

7 Likes

Can’t reproduce. Check the PlaceVersion documentation and see if you meet the requirements for it not to be printing out 0. Check your versioning history as well.

Maybe you are checking the server version on the client. The client always returns 0 in my case.

Server:
Capture

Client:
Capture2

What I have noticed is that when I try changing the GUI using gui.Text = game.PlaceVersion in roblox studio is that it will always return 0, but when the game is tested on Roblox app itself, then it works…