How do I get the selected part in a .SelectionChanged event?

I want this .SelectionChanged function to get my selected part, how would I go over doing that?
My attempt keeps returning nil.
image
image

Thanks. :slightly_smiling_face:

change Selection:Get() to

Selection:Get()[1]

as Selection:Get() returns a table.

1 Like