Update LazyNetworking.server.lua

This commit is contained in:
Max 2022-12-03 04:30:23 -06:00 committed by GitHub
parent 41b0f8f432
commit 726970a411
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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