Hello! So how can i change the walking sound when the specific part Touched?Thanks!
Use This :
local Sound = Instance.new("Sound")
Sound.Parent = script.Parent
Sound.SoundId = "" -- Find id in studio
Sound.Volume = 0.5
script.Parent.Touched:Connect(function(Part)
local Parent = Part.Parent
if game.Players:GetPlayerFromCharacter(Parent) then
Parent.Humanoid.WalkSpeed = 26 -- Set this to any number you want
Sound:Play()
end
end)
1 Like
That will be extremely glitchy as it plays the sound everytime the part is touched.
3 Likes
1 Like