Sparkles

사용되지 않는 항목 표시

*이 콘텐츠는 AI(베타)를 사용해 번역되었으며, 오류가 있을 수 있습니다. 이 페이지를 영어로 보려면 여기를 클릭하세요.

반짝이는 은

Class.Sparkles.Enabled가 ��

반짝이 입자는 부모인 BasePart 의 중심에서만 발생하며, 이는 부모인 Attachment 에 부모링됩니다. Class.Attendance 에 부모링된 반짝이 입자를 사용자 정의하면 시작 위치를 사용자 정의할 수 있습니다.

코드 샘플

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.Color 와 동일하지만, 색이 아닌 색을 적용하는 경

반짝이는 것은 일부 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 와 같이, 반짝이 입자가 발생하는지 여부를 결정합니다. 이미 발생한 모든 반짝이 입자는 Sparkle이 만료될


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와 동일하게 작동합니다.

SparkleColor 속성은 모든 입자가 Sparkles 개체(현재 및 미래 모두 입자)에 방출하는 색상을 결정합니다. 이 속성은 자연스럽게 ParticleEmitter.Color 와 동일하지만, 색상이 하나이

반짝이는 것은 일부 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

병렬 읽기

메서드

이벤트