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

I need to know how to set this ???[Unsolved]

Asked by
Krlos21 45
9 years ago

I tried to use "SelectionBox" in my game for people to have it but I cant make it work I tried to place the SelectionBox inside the brick and change its colors but nothing would appear I saw an example but it wasnt placed inside the brick I also tried to place one SelectionBox inside Players in Edit Mode but nothing happened I just need a clue on how to place it on Players bodies and I would do the rest and I would thank you a lot

1 answer

Log in to vote
1
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
9 years ago

You need to set the Adornee.

This cannot be set manually, it much be done with a script. You can easily do this with the command bar.

workspace.Part.SelectionBox.Adornee = workspace.Part

Or, the way I usually do it:

game.Selection:Get()[1].Adornee = game.Selection:Get()[2]

This way if you have multiple parts in workspace it won't mess up, you just select the selection box then hold ctrl and select the part.

Ad

Answer this question