I need major help

Hello everyone. I made an incremental simulator game called samurai masters.

The game itself is fun and I would really like to sponsor it to get the public’s opinion on it. As you can imagine there is a little issue.

The game works perfectly and flawlessly in Roblox studio. But whenever I play on the Roblox platform, the game will have odd bugs. For instance, I will hatch an egg and instead of telling me the pet I got it will just be blank. But when I leave and rejoin I’ll have the pet and the hatching will work just fine.

I also have an issue where when you try to teleport to the snow world, and strictly the snow world, it will tell you that you had a loading error and kick you from the game.

I check the console and it tells me what happens. It says something similar to, “petfolder is not a valid member of the player,” but if that was the case I would lose all my pets when I leave and rejoin because there is nothing to save.

So I need serious help, because it has the bug “spurts” whenever. One minute it works just fine, the next minute the swords don’t work. I need help.

Game:

I don’t know exactly why these occur but try using :WaitForChild() for your variables on the client.

local PlayerFolder = player:WaitForChild("folderName")

1 Like

I’ll use this suggestion, thank you!

Hello
In scripting, you should use the right services to transfer players to another server.
The reason something is missing may be that it is not loaded properly. Try using firstforchild or something like that to load it properly.
Turn on all security options.
Add print or waren to the parts of the code that have problems.
If there is a problem with the chat or the scripts you have written related to the chat are not working properly, use the new chat service, which is the text chat service.

1 Like

The problem with Roblox is in the way it loads, of course I’m not sure about this. Chat GPT said this. For example, I give it the right scripts, but it says it may not load properly and you have to use the methods I’m telling you. And this is strange to me too.
For example, I heard that tast.wait() is better than wait(), but I don’t know if there are any differences in properties.

1 Like

I just tested your game and the pet is not invisible at all, meaning the pet hatches from the egg and is displayed when I select it.

1 Like

Thanks for the help! I will try my best to use your solutions.

Glad to hear that. I think it was a Roblox thing because I don’t seem to see it anymore either.