Sparkles

แสดงที่เลิกใช้งานแล้ว

*เนื้อหานี้แปลโดยใช้ AI (เวอร์ชัน Beta) และอาจมีข้อผิดพลาด หากต้องการดูหน้านี้เป็นภาษาอังกฤษ ให้คลิกที่นี่

ประกายเป็

เมื่อ Class.Sparkles.Enabled</

อนุภาคเพชรเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะเฉพาะ

ตัวอย่างโค้ด

The code sample below gives any new players sparkles that are colored the same as their torso color.

Give Sparkles

local Players = game:GetService("Players")
local function onCharacterSpawned(character)
local hrp = character:WaitForChild("HumanoidRootPart")
-- Add sparkles that are colored to the player's torso color
local sparkles = Instance.new("Sparkles")
sparkles.Parent = hrp
sparkles.SparkleColor = character:WaitForChild("Body Colors").TorsoColor.Color
sparkles.Enabled = true
end
local function onPlayerAdded(player)
player.CharacterAdded:Connect(onCharacterSpawned)
end
Players.PlayerAdded:Connect(onPlayerAdded)

สรุป

คุณสมบัติ

  • ซ่อนอยู่
    ไม่ซ้ำ
    อ่านพร้อมๆ กัน
    เลิกใช้แล้ว

    กำหนดสีของอนุภาคประกาย

  • อ่านพร้อมๆ กัน

    กำหนดว่าจะเปล่งประกายหรือไม่

  • ซ่อนอยู่
    ไม่ซ้ำ
    อ่านพร้อมๆ กัน
  • อ่านพร้อมๆ กัน

    กำหนดสีของอนุภาคประกาย

  • อ่านพร้อมๆ กัน

คุณสมบัติ

Color

ซ่อนอยู่
ไม่ซ้ำ
อ่านพร้อมๆ กัน

สี โปรไฟล์สี กำหนดสีของอาหรับทั้งหมดของอนุภาคที่ปล่อยโดยวัตถุ Sparkles (ทั้งอนุภาคที่มีอยู่และอนุภาคที่มาใหม่)

ควรเป็นเรื่องที่น่าสนใจว่าประกายมีผล ParticleEmitter.LightEmission ส่วนหนึ่ง ดังนั้นสีมืดจึงมักจะเรนเดอร์ให้มองโปร่งใสและสีขาวมักจะดูสว่างมาก

ตัวอย่างโค้ด

The code sample below gives any new players sparkles that are colored the same as their torso color.

Give Sparkles

local Players = game:GetService("Players")
local function onCharacterSpawned(character)
local hrp = character:WaitForChild("HumanoidRootPart")
-- Add sparkles that are colored to the player's torso color
local sparkles = Instance.new("Sparkles")
sparkles.Parent = hrp
sparkles.SparkleColor = character:WaitForChild("Body Colors").TorsoColor.Color
sparkles.Enabled = true
end
local function onPlayerAdded(player)
player.CharacterAdded:Connect(onCharacterSpawned)
end
Players.PlayerAdded:Connect(onPlayerAdded)

Enabled

อ่านพร้อมๆ กัน

สมบัติที่เปิดใช้งานจะตรงกับ ParticleEmitter.Enabled ว่าจะเปล่งประกายหรือไม่ สมบัติที่เปิดใช้งานจะดำเนินการ


local Debris = game:GetService("Debris")
local part = script.Parent
function stopSparkling(sparkles)
sparkles.Enabled = false -- No more new particles
Debris:AddItem(sparkles, 4) -- Remove the object after a delay (after existing particles have expired)
end
stopSparkling(part.Sparkles)

ตัวอย่างโค้ด

The code sample below gives any new players sparkles that are colored the same as their torso color.

Give Sparkles

local Players = game:GetService("Players")
local function onCharacterSpawned(character)
local hrp = character:WaitForChild("HumanoidRootPart")
-- Add sparkles that are colored to the player's torso color
local sparkles = Instance.new("Sparkles")
sparkles.Parent = hrp
sparkles.SparkleColor = character:WaitForChild("Body Colors").TorsoColor.Color
sparkles.Enabled = true
end
local function onPlayerAdded(player)
player.CharacterAdded:Connect(onCharacterSpawned)
end
Players.PlayerAdded:Connect(onPlayerAdded)

LocalTransparencyModifier

ซ่อนอยู่
ไม่ซ้ำ
อ่านพร้อมๆ กัน

SparkleColor

อ่านพร้อมๆ กัน

คุณสมบัตินี้ทำงานเหมือนกันกับ Sparkles.Color

สมบัติสีประกายจะกำหนดสีของอนุภาคทั้งหมดที่ปล่อยโดยวัตถุ Sparkles (ทั้งอนุภาคปัจจุบันและอนุภาคในอนาคต) มันจะ

ควรเป็นเรื่องที่น่าสนใจว่าประกายมีผล ParticleEmitter.LightEmission ส่วนหนึ่ง ดังนั้นสีมืดจึงมักจะเรนเดอร์ให้มองโปร่งใสและสีขาวมักจะดูสว่างมาก

ตัวอย่างโค้ด

The code sample below gives any new players sparkles that are colored the same as their torso color.

Give Sparkles

local Players = game:GetService("Players")
local function onCharacterSpawned(character)
local hrp = character:WaitForChild("HumanoidRootPart")
-- Add sparkles that are colored to the player's torso color
local sparkles = Instance.new("Sparkles")
sparkles.Parent = hrp
sparkles.SparkleColor = character:WaitForChild("Body Colors").TorsoColor.Color
sparkles.Enabled = true
end
local function onPlayerAdded(player)
player.CharacterAdded:Connect(onCharacterSpawned)
end
Players.PlayerAdded:Connect(onPlayerAdded)

TimeScale

อ่านพร้อมๆ กัน

วิธีการ

อีเวนต์