Learn
Motor Sınıfı
Trail

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


Kod Örnekleri
Temel Bir İz ile Bir Parça Oluşturma
local TweenService = game:GetService("TweenService")
-- Bir üst parça oluştur
local part = Instance.new("Part")
part.Material = Enum.Material.SmoothPlastic
part.Size = Vector3.new(4, 1, 2)
part.Position = Vector3.new(0, 5, 0)
part.Anchored = true
part.Parent = workspace
-- Parçaya bağlantılar oluştur
local attachment0 = Instance.new("Attachment")
attachment0.Name = "Attachment0"
attachment0.Position = Vector3.new(-2, 0, 0)
attachment0.Parent = part
local attachment1 = Instance.new("Attachment")
attachment1.Name = "Attachment1"
attachment1.Position = Vector3.new(2, 0, 0)
attachment1.Parent = part
-- Yeni bir iz oluştur
local trail = Instance.new("Trail")
trail.Attachment0 = attachment0
trail.Attachment1 = attachment1
trail.Parent = part
-- İzi göstermek için parçayı tweenle
local dir = 15
while true do
dir *= -1
local goal = { Position = part.Position + Vector3.new(0, 0, dir) }
local tweenInfo = TweenInfo.new(3)
local tween = TweenService:Create(part, tweenInfo, goal)
tween:Play()
task.wait(4)
end

API Referansı
Özellikler
Attachment0
Paralel oku
Capabilities: Basic
Trail.Attachment0:Attachment

Attachment1
Paralel oku
Capabilities: Basic
Trail.Attachment1:Attachment

Brightness
Paralel oku
Capabilities: Basic
Trail.Brightness:number

Color
Paralel oku
Capabilities: Basic
Trail.Color:ColorSequence
Kod Örnekleri
Renk Gradyanı ile İz Oluşturma
local TweenService = game:GetService("TweenService")
-- Bir ebeveyn parça oluştur
local part = Instance.new("Part")
part.Material = Enum.Material.SmoothPlastic
part.Size = Vector3.new(4, 1, 2)
part.Position = Vector3.new(0, 5, 0)
part.Anchored = true
part.Parent = workspace
-- Parça üzerinde ek bağlantılar oluştur
local attachment0 = Instance.new("Attachment")
attachment0.Name = "Attachment0"
attachment0.Position = Vector3.new(-2, 0, 0)
attachment0.Parent = part
local attachment1 = Instance.new("Attachment")
attachment1.Name = "Attachment1"
attachment1.Position = Vector3.new(2, 0, 0)
attachment1.Parent = part
-- Renk gradyanı ile yeni bir iz oluştur
local trail = Instance.new("Trail")
trail.Attachment0 = attachment0
trail.Attachment1 = attachment1
local color1 = Color3.fromRGB(255, 0, 0)
local color2 = Color3.fromRGB(0, 0, 255)
trail.Color = ColorSequence.new(color1, color2)
trail.Parent = part
-- İzi göstermek için parçayı Tweenle
local dir = 15
while true do
dir *= -1
local goal = { Position = part.Position + Vector3.new(0, 0, dir) }
local tweenInfo = TweenInfo.new(3)
local tween = TweenService:Create(part, tweenInfo, goal)
tween:Play()
task.wait(4)
end

Enabled
Paralel oku
Capabilities: Basic
Trail.Enabled:boolean

FaceCamera
Paralel oku
Capabilities: Basic
Trail.FaceCamera:boolean

Lifetime
Paralel oku
Capabilities: Basic
Trail.Lifetime:number

LightEmission
Paralel oku
Capabilities: Basic
Trail.LightEmission:number

LightInfluence
Paralel oku
Capabilities: Basic
Trail.LightInfluence:number

LocalTransparencyModifier
Gizli
Çoğaltılmamış
Paralel oku
Capabilities: Basic
Trail.LocalTransparencyModifier:number

MaxLength
Paralel oku
Capabilities: Basic
Trail.MaxLength:number

MinLength
Paralel oku
Capabilities: Basic
Trail.MinLength:number

Texture
Paralel oku
Capabilities: Basic
Trail.Texture:ContentId
Kod Örnekleri
Bir İz Bırakan Doku ile Bir İzi Oluşturma
local TweenService = game:GetService("TweenService")
-- Ana parça oluştur
local part = Instance.new("Part")
part.Material = Enum.Material.SmoothPlastic
part.Size = Vector3.new(2, 1, 2)
part.Position = Vector3.new(0, 5, 0)
part.Anchored = true
part.Parent = workspace
-- Parçaya eklemeler oluştur
local attachment0 = Instance.new("Attachment")
attachment0.Name = "Attachment0"
attachment0.Position = Vector3.new(-1, 0, 0)
attachment0.Parent = part
local attachment1 = Instance.new("Attachment")
attachment1.Name = "Attachment1"
attachment1.Position = Vector3.new(1, 0, 0)
attachment1.Parent = part
-- Renk gradyanı ile yeni bir iz oluştur
local trail = Instance.new("Trail")
trail.Attachment0 = attachment0
trail.Attachment1 = attachment1
trail.Texture = "rbxassetid://16178262222"
trail.TextureMode = Enum.TextureMode.Static
trail.TextureLength = 2
trail.Parent = part
-- İzi göstermek için parçayı tween yap
local dir = 15
while true do
dir *= -1
local goal = { Position = part.Position + Vector3.new(0, 0, dir) }
local tweenInfo = TweenInfo.new(3)
local tween = TweenService:Create(part, tweenInfo, goal)
tween:Play()
task.wait(4)
end

TextureLength
Paralel oku
Capabilities: Basic
Trail.TextureLength:number

TextureMode
Paralel oku
Capabilities: Basic
Trail.TextureMode:Enum.TextureMode

Transparency
Paralel oku
Capabilities: Basic
Trail.Transparency:NumberSequence

WidthScale
Paralel oku
Capabilities: Basic
Trail.WidthScale:NumberSequence

Yöntemler
Clear
Capabilities: Basic
Trail:Clear():()
Dönüşler
()

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