-
What do you want to achieve? Keep it simple and clear!
I want to change the sounds for the player to different audios. -
What is the issue? Include screenshots / videos if possible!
Getting error "Climbing, etc. is not a valid member of Part (HumanoidRootPart)
Oh and also, it is actually a valid member, but for some reason the script isn’t detecting the audio. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have tried:
Printing the name of some stuff in HumanoidRootPart, doesn’t show up.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local sFallingDown = "rbxasset://sounds/splat.wav" -- not in game anymore
local sGettingUp = "rbxasset://sounds/hit.wav" -- done
local sDied = "rbxassetid://12222242" -- done
local sFreeFalling = "rbxassetid://138079657" -- done
local sJumping = "rbxassetid://12222200" -- done
local sLanding = "rbxassetid://138079657" -- done
local sSplash = "rbxassetid://138079657" -- done
local sRunning = "rbxassetid://12221952" -- done
local sSwimming = "rbxassetid://138079657" -- done
local sClimbing = "rbxassetid://138079657" -- done
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
wait(5)
char.HumanoidRootPart.Climbing.SoundID = sClimbing
char.HumanoidRootPart.FreeFalling.SoundID = sFreeFalling
char.HumanoidRootPart.Died.SoundID = sDied
char.HumanoidRootPart.GettingUp.SoundID = sGettingUp
char.HumanoidRootPart.Landing.SoundID = sLanding
char.HumanoidRootPart.Jumping.SoundID = sJumping
char.HumanoidRootPart.Splash.SoundID = sSplash
char.HumanoidRootPart.Swimming.SoundID = sSwimming
char.HumanoidRootPart.Running.SoundID = sRunning
print("Changed all sounds successfully for "..plr.Name.."!")
end)
end)
Any ideas?
Thanks,
OldBo5.