I’m making a simple punch tool without handle but I’m having a issue with playing the audio when the tool is being used because it plays but you cant hear it. I was stumped for several hours and cant figure it out.
3 Likes
Try cloning the audio into the character’s rootpart. I believe that the sound will not be audible if you keep it inside the Tool.
3 Likes
How can I clone the audio to the root part
local sound = Tool.Sound:Clone()
sound.Parent = Tool.Parent.HumanoidRootPart
sound:Play()
game:GetService("Debris"):AddItem(sound, 10)
Make sure to change the code according to how you’ve named the instances.
1 Like
this error played
HumanoidRootPart is not a valid member of Backpack “Players.ExtrSwiftz.Backpack”
1 Like
Where is your script so others can try to help
I mean code is this it?
local sound = Tool.Sound:Clone()
sound.Parent = Tool.Parent.HumanoidRootPart
sound:Play()
game:GetService("Debris"):AddItem(sound, 10)
Yes thats the code the guy provided but it gave a error