-- Functions

players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(character)
        
        local rootPart = character:WaitForChild("HumanoidRootPart")
        
        local footstepsSound = Instance.new("Sound")
        footstepsSound.Name = "Footsteps"
        footstepsSound.Volume = 0.15
        footstepsSound.RollOffMaxDistance = 30
        footstepsSound.RollOffMode = Enum.RollOffMode.Linear
        footstepsSound.PlayOnRemove = true
        
        footstepsSound.Parent = rootPart
        
    end)
end)
