Learn
Motor Sınıfı
Selection
Oluşturulamaz
Hizmet

*Bu içerik, yapay zekâ (beta) kullanılarak çevrildi ve hatalar içerebilir. Sayfayı İngilizce görüntülemek için buraya tıkla.


Özet
Yöntemler
Add(instancesToAdd: Instances):()
Get():Instances
Remove(instancesToRemove: Instances):()
Set(selection: Instances):()
Devralınan Üyeler
Kod Örnekleri
Seçim
local Selection = game:GetService("Selection")
for _, object in pairs(Selection:Get()) do
if object:IsA("BasePart") then
object.CFrame = object.CFrame * CFrame.Angles(0, math.pi / 2, 0)
end
end

API Referansı
Özellikler
SelectionThickness
Salt Okunur
Çoğaltılmamış
Paralel oku
Capabilities: Basic
Selection.SelectionThickness:number

Yöntemler
Add
Eklenti Güvenliği
Capabilities: Basic
Selection:Add(instancesToAdd:Instances):()
Parametreler
instancesToAdd:Instances
Dönüşler
()

Get
Eklenti Güvenliği
Capabilities: Basic
Selection:Get():Instances
Dönüşler
Instances
Kod Örnekleri
Seçim
local Selection = game:GetService("Selection")
for _, object in pairs(Selection:Get()) do
if object:IsA("BasePart") then
object.CFrame = object.CFrame * CFrame.Angles(0, math.pi / 2, 0)
end
end
Seçim.SeçimDeğişti
local selection = game:GetService("Selection")
selection.SelectionChanged:Connect(function()
print("Seçim " .. #selection:Get() .. " öge içeriyor.")
end)

Remove
Eklenti Güvenliği
Capabilities: Basic
Selection:Remove(instancesToRemove:Instances):()
Parametreler
instancesToRemove:Instances
Dönüşler
()

Set
Eklenti Güvenliği
Capabilities: Basic
Selection:Set(selection:Instances):()
Parametreler
selection:Instances
Dönüşler
()
Kod Örnekleri
Seçim Seti
local Selection = game:GetService("Selection")
local newSelection = {}
for _, object in pairs(workspace:GetDescendants()) do
if object:IsA("BasePart") and object.BrickColor == BrickColor.new("Bright red") then
table.insert(newSelection, object)
end
end
Selection:Set(newSelection)

Olaylar
SelectionChanged
Capabilities: Basic
Selection.SelectionChanged():RBXScriptSignal
Kod Örnekleri
Seçim.SeçimDeğişti
local selection = game:GetService("Selection")
selection.SelectionChanged:Connect(function()
print("Seçim " .. #selection:Get() .. " öge içeriyor.")
end)

©2026 Roblox Corporation. Roblox, the Roblox logo and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.