In a part of my clapping script, I am welding a part to the players hands the contains the clap sound effects that will be randomly played, the problem is in the setup if a player is wearing a package it will not weld the part to their hand, I am getting no errors besides that the part containing the sounds doesn’t exist.
I have tried using both a weld and a weld constraint, it makes no difference.
Here is my code:
local Sounds = game.ReplicatedStorage.Claps.SoundEmitter:Clone()
local Character = player.Character or player.CharacterAdded:Wait()
local Hand = Character:WaitForChild("RightHand")
print(Hand)
local Weld = Sounds.Weld
Sounds.Parent = Hand
Sounds.CFrame = Hand.CFrame
Weld.Parent = Hand
Weld.Part0 = Hand
It has always been r15 only, It’s not a problem of not finding the hand, it finds the hand, I have checked with a print, but it just won’t put the sound emitter into it.
game.Players.PlayerAdded:Connect(function(player)
local Sounds = game.ReplicatedStorage.Claps.SoundEmitter:Clone()
local Character = player.Character or player.CharacterAdded:Wait()
local Hand = Character:WaitForChild("RightHand")
print(Hand)
local Weld = Sounds.Weld
Sounds.Parent = Hand
Sounds.CFrame = Hand.CFrame
Weld.Parent = Hand
Weld.Part0 = Hand
end)
The game is r15 only, It’s not about r6 not working because there is no r6 in the game, its about if a player is not wearing a package it works but if they are it wont.