How can I change a multi-selection property with a script?

Hi there!

This is pretty easy for developers to answer, but I just want to know, how can I change a multi-selection property of a script? Look, here’s what I want to know:
image
Here’s a multi-selection property on a SurfaceGUI, and I want to know how I can change this via a script. Should I use brackets? Commas? Please tell me, thank you!

There are two ways

  1. Use a string
    It isnt recommended, but most of the time it works
SurfaceGui.SizingMode = "FixedSize" -- setx Via String
  1. Use Enum
    Enum is a big library that has these properties stored, you can simply looking for Enum.SurfaceGuiSizingMode, and it will give you the list of the Properties that are available, or deprecated.
SurfaceGui.SizingMode = Enum.SurfaceGuiSizingMode.FixedSize -- Sets via Enum Index

for this specific thing, its Enum.SurfaceGuiSizingMode, if you look at what the Property is (which it could be a EnumType, Color3, Instance), it will tell you what that Enum is specifically

Documentation
If you look at the Side Bar of the Developer Hub, you will see the Enum Tab, open that and it will show you what’s there, you can also do this Via script by simply typing Enum

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.