So I’ve been trying to make this game in which you can control a cube. However, since the player has to control the cube, I need to replace the player with a cube they can control. I’ve decided that I’ll just make the player invisible, and just use CFrame to constantly move them to the cube’s position, but now I just need to make them able to use the cube.
For this, I’m thinking I need to do something along the lines of assigning the player a cube when they join, and then letting them move the cube around.
The only thing I’m focusing on right now, though, is trying to get the cube assigned to the player. How do I get the player to get the cube? To do a test run, I’m just trying to get the cube to stay above the player’s head, so I know they’re assigned the cube, but I don’t know how to do that.
Just make the cube the character, so model it and insert a humanoid. You will probably also have to name it “HumanoidRootPart” and from there you can just program your own movement to suit your needs.
So all you have to do is make a model (i guess call it Cube) insert a Humanoid, then name the cube part HumanoidRootPart and make that the models primary part. Then you only need to set the player.Character = cube
Instance a new part called “Torso” in the cube character, probably weld it to the HumanoidRootPart and make it so it’s the same size and same properties of the HumanoidRootPart, however you will probably have to make the root part CanCollide false and Transparency 1 to make it not look weird.
Make sure both of the parts are in the same position.
I really didn’t know how to explain this so I’m sorry if it looks weird.
I made a Torso with the same size and position as the HumanoidRootPart, welded the torso to the humanoid rootpart (with the HumanoidRootPart being Part1) and made the HumanoidRootPart have a transparancy of 1 and CanCollide on false, and the only difference was that it shaded the cube smooth.
Ok. I found a problem. A major problem. The reason the model was replaced was most likely due to animation errors. Whenever Roblox tries to apply an animation on the player, there’s an error because It needs all the parts for said animation. I think the reason it replaced it was because of that error. Because it ran into the error, it replaced the Cube with my avatar, getting rid of all of the animation errors.