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

How to have a Group follow player, not just a Part?

Asked by 6 years ago
Edited 6 years ago

I was unaware of how to program this, so I looked it up, and there is a tutorial;

http://wiki.roblox.com/index.php?title=Scripting_Book/Chapter_3

However, it only teaches how to make a single brick follow the player.

What I want to achieve is an entire group of parts following the player. When I tried to achieve this, all of the parts individually followed me.

So, to boil it down, I need the group of parts to move as if it were unioned, but without being a union.

tl;dr Part follows player, need multiple parts to follow player as if they were one part.

2 answers

Log in to vote
3
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
6 years ago

If you want to move a model, use the SetPrimaryPartCFrame function. Note that the PrimaryPart Property of the model needs to be set beforehand.

Ad
Log in to vote
2
Answered by 6 years ago

I don't know, you could try pairs:

http://wiki.roblox.com/index.php?title=Global_namespace/Basic_functions#pairs

That small tutorial isn't very well explained, but you can find YouTube tutorials on it.

Also maybe try MoveTo

http://wiki.roblox.com/index.php?title=API:Class/Model/MoveTo

You'll need to set a primary part on the model for that.

Hopefully this helps, and if it does, please accept the answer. Thanks.

0
Will do. Thanks for the point in the right direction! OrcaTheFish 95 — 6y

Answer this question