I’m making a game and for some reason some things work in studio, but don’t work in game?
for example, i have a ragdoll all thing purchasable from shop. works absolutely fine in studio, but on the game itself its like it doesnt get it at all. I hear the purchase sound that says you purchased the thing, but it just refuses to work?
other things like teleporting back to spawn when touching a certain part works perfectly fine in studio, but i just fall out the map and die in game, no return to spawn. again, the sound triggers but nothing actually happens.
I get no errors in the dev log, nothing on the games dashboard either.
I can provide clips, but there’s really not much to show, it is quite literally as if it just doesnt exist outside of client sided sounds ;(
Studio testing runs on your computer (the client), not the server. This means Local Scripts will work for both cases.
In game is of course on the server and your client.
Check to see if you’re using LocalScripts for these functions. If so then they may not work properly when referenced on the server.
definitely using the right scripts, and some arent client related at all - if you fall off the map it detects a hit on a part then runs a server sided function to send the player back.
You say you fall out of the map in game. Is the map loaded and and you are falling through it, or are you falling through because the Parts aren’t there?
If so do you have StreamingEnabled on? It may be that everything is loading in Studio, but in-game StreamingEnabled hasn’t loaded those Parts back in if you’re a distance away from the spawn when you touch the certain Part…
It’d also help if you posted the sections of code that relate to these issues. It might be that you’re playing the sound, but then the sale fails.