SurfaceGui

SurfaceGui : SurfaceGuiBase

Properties

AlwaysOnTop

bool

AlwaysOnTop determines whether the GUI element remains on top of other elements.

Code Samples

local SurfaceGui = script.Parent

print(SurfaceGui.AlwaysOnTop)

LightInfluence

number

Adjusts how much the GUI is affected by lighting in the game world.

Code Samples

local SurfaceGui = script.Parent

print(SurfaceGui.LightInfluence)

MaxDistance

number

Controls the maximum distance from which the SurfaceGui can be seen, allowing developers to optimize performance by limiting rendering distance.

Code Samples

local SurfaceGui = script.Parent

print(SurfaceGui.MaxDistance)

Methods

Events

Last updated