简体   繁体   中英

How do I move a player with a part in roblox?

I'm working on a game. I didn't know if it's broken in the actual game so I fired it up in a test world.

https://streamable.com/ifaatg is me playing around with it

How do I get the player to move on the cyan block? Did roblox just make this feature cringe?

You can do this by manipulating theHumanoid using CFrames .

Get the Humanoids Rootpart

HumanoidRootPart, which is the root driving part of the Humanoid, that controls a humanoid's movement through the game world.

The RootPart is the RootPart of the Humanoid Model's assembly. As such, if a developer wishes to move the Humanoid they should do so via the RootPart

Just find out how people implement trains, cars and such.

You basically get the position of the block and update the Humanoids position each frame.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM