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

Is it possible for a Part to have an outline?

Asked by 6 years ago

Is it possible for a Part to have an outline?If so,how?

0
Thanks to all rochel89 42 — 6y

3 answers

Log in to vote
2
Answered by
farizarps 132
6 years ago
Edited 6 years ago

Parts can be outlined using Roblox's Selection Box object.

Create a new SelectionBox. Set its Adornee property to the part that you want to outline You can change the color, transparency and line thickness of the outline by changing the properties.

Ad
Log in to vote
1
Answered by 6 years ago

To create an outline on a part you can use a SelectionBox https://developer.roblox.com/api-reference/class/SelectionBox

Here is an example of a SelectionBox

local part = targetparthere
local box = Instance.new("SelectionBox")
box.Parent = part
box.Adornee = part
Log in to vote
0
Answered by
yHasteeD 1819 Moderation Voter
6 years ago

You need to use SelectionBox

The basic of SelectionBox is:

-- Put this script in part --

local part = script.Parent -- Location of part

local box = Instance.new("SelectionBox", part)
box.Adornee = part

But there are other things.

Example of 1:

-- Put this script in part --

local part = script.Parent -- Location of part

local box = Instance.new("SelectionBox", part)
box.Adornee = part

-- Change color
box.Color3 = Color3.fromRGB(255,0,0) -- Change SelectionBox Color to Red.

You can see all of Selection box in This links

1 - Selection Box Example

2 - Selection Box

Hope it helped!

Answer this question