-- 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.RollOffMaxDistance = 22.5
		footstepsSound.RollOffMode = Enum.RollOffMode.Linear
		footstepsSound.PlayOnRemove = true
		footstepsSound.Volume = 1.2
		
		footstepsSound.Parent = rootPart
		
	end)
end)
