There’s an issue in my game where the humanoidrootpart is where it’s supposed to be, however if you join after someone only you’ll see their character in another spot. If you join after someone, their parts will be disconnected from the humanoidrootpart. I’ve looked through all the scripts in the game and plugins and couldn’t find anything.
Could anyone help me fix the issue? It’s been happening for over a year.
It sounds like you may have a synchronization issue with the position of the humanoidrootpart. When a player joins the game, their client needs to receive the correct position of the humanoidrootpart from the server. If this synchronization is not happening correctly, then the player’s character may appear in the wrong spot.
To troubleshoot this issue, you can try the following:
Check if the issue occurs in all game modes (e.g., single-player, multiplayer). If the issue only occurs in multiplayer, then it may be related to networking.
Look for any code that sets the position of the humanoidrootpart. Make sure that this code is only called on the server and not on the client. You can use RemoteFunctions and RemoteEvents to communicate between the client and server.
Check if any plugins or third-party tools are modifying the position of the humanoidrootpart. If so, try disabling them to see if the issue persists.
Make sure that the humanoidrootpart is anchored and not moved by physics. You can set the Anchored property to true and the CanCollide property to false.
Check if any other parts of the player’s character are also out of position. If so, then it may be related to how the character is spawned or instantiated.
Consider using a debug tool to inspect the position of the humanoidrootpart and other relevant parts. You can use the Output window or the print() function to output the position to the console.
I hope this helps you to resolve the issue with your game!
I’ve tried all of these and none work. What could I print to check? I’ve used the search tool on studio to look for HumanoidRootPart and it’s only moved when a command is run. Nothing is done relating to characters locally.
If you’ve checked all of those things and still can’t find the issue, you could try printing the position of the humanoidrootpart in various places to see if there are any discrepancies.
For example, you could add some print statements to the server-side code that sets the position of the humanoidrootpart to verify that it is being set correctly. You could also add some print statements to the client-side code that receives the position of the humanoidrootpart to see if it is being received correctly.
Additionally, you could try using the Output window in Roblox Studio to print the position of the humanoidrootpart in various scenarios, such as when a player joins the game or when their position appears to be incorrect. This may help you identify any patterns or inconsistencies in the position data.
If none of these approaches yield any useful information, you may need to enlist the help of others, such as experienced Roblox developers or members of the Roblox community, to help you identify and resolve the issue.
I know where the humanoidrootpart is as I’ve made it non-transparent. The parts of the body is off in a random spot while the humanoidrootpart is where it should be.
They aren’t in a different position. The character’s parts (e.g. legs) are in a random spot. The HumanoidRootPart is where it should be on each client, unlike other parts.
Ah, it could be a script. Press CTRL + SHIFT + F and in the search bar type the body parts name. Also type require(, If this appeared and you did not intentionally write it, then remove it it can be a virus too.
Sometimes the glitch wont happen in servers, sometimes it will. For example, I was in a server earlier and the glitch wasn’t happening when I rejoined. Then I joined another server and it was happening when I rejoined.