Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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

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.

1 comment

0

Will do. Thanks for the point in the right direction!

This discussion is preserved as it was. New answers, comments, and votes are closed.