function followPlayer(K)local r=K.Character if r then local K=(bear.PrimaryPart.Position-r.PrimaryPart.Position).Magnitude if K<2 then bear.Position=r.PrimaryPart.Position end end end
-- 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
