-- Create a function to make the bear follow the player

function followPlayer(player)
	local character = player.Character
	if character then
		local distance = (bear.PrimaryPart.Position - character.PrimaryPart.Position).Magnitude
		if distance < 2 then
			bear.Position = character.PrimaryPart.Position
		end
	end
end
