Hey developers,
So, I currently have an issue. I’m finding the player’s lower torso in a character. This is the script I have?
local RS = game:GetService("ReplicatedStorage")
local Event = RS.Events.Ritual
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local upperTorso = char:WaitForChild("UpperTorso")
local lowerTorso = char:WaitForChild("LowerTorso")
Event.OnClientEvent:Connect(function()
local boom = Instance.new("Sound")
boom.SoundId = "rbxassetid://2103404398"
boom.Parent = game.Workspace
boom.Volume = 5
boom.Name = "Boom"
boom:Play()
game.Lighting.TimeOfDay = 0
wait(3)
local music = Instance.new("Sound")
music.SoundId = "rbxassetid://1837949734"
music.Parent = game.Workspace
music.Name = "Ritual"
music:Play()
upperTorso.Ice.AuraCircles.Enabled = true
upperTorso.Ice.Circle.Enabled = true
upperTorso.Ice.Middle.Enabled = true
upperTorso.Ice.ParticleEmitter.Enabled = true
upperTorso.Ice.Something.Enabled = true
local humanoid = char:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://16310971264"
local animationTrack = animator:LoadAnimation(animation)
animationTrack:Play()
wait(7)
upperTorso.Shadow.Aura.Enabled = true
upperTorso.Shadow.Dots.Enabled = true
upperTorso.Shadow.Flames.Enabled = true
wait(5)
upperTorso.Ice.AuraCircles.Enabled = false
upperTorso.Ice.Circle.Enabled = false
upperTorso.Ice.Middle.Enabled = false
upperTorso.Ice.ParticleEmitter.Enabled = false
upperTorso.Ice.Something.Enabled = false
upperTorso.Shadow.Aura.Enabled = false
upperTorso.Shadow.Dots.Enabled = false
upperTorso.Shadow.Flames.Enabled = false
wait(3)
for _, attachment in pairs(lowerTorso:GetDescendants()) do
if attachment:IsA("Attachment") then
local emitter = attachment:FindFirstChild("ParticleEmitter")
if emitter then
emitter.Enabled = true
end
end
end
game.Lighting.TimeOfDay = 12
boom:Play()
end)
It’s the end part that finds all attachments in their lower torso, then finds all particle emitters and enables them.
Thank you!