Update LazyNetworking.server.lua
This commit is contained in:
parent
41b0f8f432
commit
726970a411
1 changed files with 10 additions and 4 deletions
|
@ -28,12 +28,18 @@ function Validators.SetParticle(player: Player, name: string, set: boolean?)
|
|||
|
||||
local character = player.Character
|
||||
|
||||
local rootPart = if character then character.PrimaryPart else nil
|
||||
-- stylua: ignore
|
||||
local rootPart = if character
|
||||
then character.PrimaryPart
|
||||
else nil
|
||||
|
||||
if rootPart then
|
||||
local particles = rootPart:FindFirstChild("Particles")
|
||||
|
||||
local particle = if particles then particles:FindFirstChild(name) else nil
|
||||
-- stylua: ignore
|
||||
local particle = if particles
|
||||
then particles:FindFirstChild(name)
|
||||
else nil
|
||||
|
||||
if particle then
|
||||
return true
|
||||
|
|
Loading…
Reference in a new issue