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

Is it possible for a Part to have an outline?

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

1 comment

0

Thanks to all

3 answers

✓ Accepted answer

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.

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!

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