Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I make an avatar hover next to a player's character?

Asked by 4 years ago

My goal is to make simple humanoid-blocky avatars hover next to my player at a configurable offset that can also be changed in real-time. I don't want it to be statically stuck though. When the player starts to move or the offset is changed I'd like it to smoothly move to the new offset or/and follow the player. I need it to be seen by people on the server too. Could anybody help me understand how I'd go about this? I'm fairly new to developing in Roblox so I'm not sure how I'd even start to implement this.Thanks for any replies.

0
Use CFrame for placement of your humanoid-blocky avatar and for offsetting it relative to the player's character. https://developer.roblox.com/en-us/articles/Understanding-CFrame aredanks 117 — 4y
0
@aredanks Everyone in the server is going to have one of these (so, 20 people). Constantly updating all the CFrames will put a lot of stress on the Server. If I set the Model's network ownership to the local player then handle it on the client will that help performance? I can still use serverside scripts to check for exploiters messing with the CFrames right? pythonbites 7 — 4y

Answer this question